Link to home
Start Free TrialLog in
Avatar of zizi21
zizi21

asked on

urgent: block is 0 bytes after 52428801 alloc'd

hi,

i am getting this error with valgrind:Address 0x1EC1C029 is 0 bytes after a block of size 52428801 alloc'd

the way i allocate memory for a buffer that is being read from file like this:

 buffer=calloc(len , sizeof(char));




ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial