|
From: Daniel O'N. <do...@th...> - 2005-05-18 20:03:36
|
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 Regards, Daniel F. O'Neill, Ph.D The Lodging Company http://skihills.com/ United Kingdom, Germany, & France: 00-800-7542-2754 Australia: 0011-800-7542-2754 Mexico: 001-800-514-9977 All other areas: 1-250-979-3939 Fax: 1-250-868-6752 Direct Extension 256 OpenPGP Public Key ID: 0x9E3CA120 |