id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
930,memory error from msSaveQuery,sgillies@…,sdlime,"{{{
Saw this error when running Python unit tests under valgrind

==17045== Syscall param write(buf) contains uninitialised or unaddressable byte(s)
==17045==    at 0x1BA210F3: __write_nocancel (in /lib/tls/libc-2.3.3.so)
==17045==    by 0x1B9CEAFD: new_do_write (in /lib/tls/libc-2.3.3.so)
==17045==    by 0x1B9CEA95: _IO_do_write@@GLIBC_2.1 (in /lib/tls/libc-2.3.3.so)
==17045==    by 0x1B9CE397: _IO_file_close_it@@GLIBC_2.1 (in /lib/tls/libc-2.3.3.so)
==17045==    by 0x1B9C4698: _IO_fclose@@GLIBC_2.1 (in /lib/tls/libc-2.3.3.so)
==17045==    by 0x1C0078B9: msSaveQuery (mapquery.c:82)
==17045==    by 0x1BFB4A15: mapObj_saveQuery (mapscript_wrap.c:1527)
==17045==    by 0x1BFD4B92: _wrap_mapObj_saveQuery (mapscript_wrap.c:18014)
==17045==    by 0x80EA40C: PyCFunction_Call (in /usr/bin/python)
==17045==    by 0x805B3B6: PyObject_Call (in /usr/bin/python)
==17045==    by 0x80AB92A: (within /usr/bin/python)
==17045==    by 0x80A93C7: (within /usr/bin/python)
==17045==  Address 0x1B943035 is not stack'd, malloc'd or (recently) free'd

mapquery.c:82 is the call to fclose(STREAM)
}}}",defect,new,high,,MapServer C Library,4.3,normal,,,
