|
From: Markus H. <mar...@mh...> - 2005-05-18 20:54:50
|
Hi Daniel, thanks for tracking this down, and even more thanks for the patch. I've checked in the fix. regards, Markus Daniel O'Neill writes: > I've found a silly little bug in dbd_helper.c, which on 32-bit arch looks > harmless, but on AMD64 it croaks rather badly. > > Basically, it's an allocation to result->field_attribs (array of pointers to > unsigned integers) which is called as such: > > result->field_attribs = calloc(numfields, sizeof(unsigned int)); > > which, since it's an array of Pointers, which on AMD64 is 48bit, this > under-allocates, and should actually be: > > result->field_attribs = calloc(numfields, sizeof(unsigned int *)); > > Well, a simple one, but here's a patch anyway > -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |