Solved

urgent: block is 0 bytes after  52428801 alloc'd

Posted on 2008-10-15
1
897 Views
Last Modified: 2010-07-27
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));




0
Comment
Question by:zizi21
1 Comment
 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 total points
ID: 22723235
This is not an error ... It means that you have allocated 52428801 starting from address 0x1EC1C029
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now