data stored just before a memory chunk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Suppose I do a malloc and store some data in the memory allocated. Now
when I'm freeing this memory, I'm getting a segmentation fault.

I've ensured that this memory chunk is not freed before and that the
pointer is also ok.

What I suspect is that the bytes just before this memory chunk is
being tampered with and hence is leading to the segmentation fault
when being freed.

Could you please give me some pointers as to how I can learn about the
way linux libraries go about malloc ing memory and what other extra
data does it store and how and where.

Thanks in advance

vaidya
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux