-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey guys,
I have a problem with a seg fault inside of glibc's malloc and I don't
have any clue how to solve it.
My program calls malloc(x) several times, where x is never negative nor
0. But on one particular malloc() it always crashes.
running my
Am 17.06.2011 17:49, schrieb Tom Hughes:
On 17/06/11 16:45, Stephanie Stroka wrote:
I actually ignored three warnings. It's still a bit cryptic for me. For
example, I get the following msg:
Invalid write of size 4
==4427==at 0x405930: sort(unsigned int**, unsigned int, unsigned
int)
On Fri, Jun 17, 2011 at 5:45 PM, Stephanie Stroka
stephanie.str...@salzburgresearch.at wrote:
My code at that position looks like this:
284 static uint* sort(uint** matrix, uint width, uint height) {
285 uint* data = (uint*) malloc(width * height * sizeof(uint));
286 uint i,j=0;
287