Solved

urgent: block is 0 bytes after  52428801 alloc'd

Posted on 2008-10-15
1
925 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to declare a 2-dimensional version of strlen 4 208
Socket Programming (Unix) 8 127
How to build c program using make in mingw environment? 9 61
Computer slow / BSOD 10 59
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers 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.

776 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