|
From: Nicholas N. <nj...@ca...> - 2003-08-12 16:17:23
|
> ==2363== Invalid read of size 4 > ==2363== at 0x8049949: main (gating_grinder2J.c:410) > ==2363== by 0x40279A46: __libc_start_main (in /lib/libc-2.3.2.so) > ==2363== by 0x80487C0: ??? (start.S:81) > ==2363== Address 0x41209920 is 0 bytes after a block of size 528 > alloc'd > ==2363== at 0x4002942A: malloc (vg_replace_malloc.c:153) > ==2363== by 0x8049025: main (gating_grinder2J.c:247) > ==2363== by 0x40279A46: __libc_start_main (in /lib/libc-2.3.2.so) > ==2363== by 0x80487C0: ??? (start.S:81) > Done. > > Does anybody know what is the problem with the error? I couldn't find > any error in my program and it seemed that the program could run > normally. The line 247 in main is: > vec_rows[k] = (float *)malloc(Timepts*sizeof(float)) You allocated some memory on line 247. You wrote past the end of that memory on line 410. N |