[Gtkradiant] [Bug 649] Scriplib causing memory corruption on C-style comment

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Fri, 25 Oct 2002 22:50:53 -0500


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=649





------- Additional Comments From ydnar@shaderlab.com  2002-10-25 22:50 -------
On a second pass, the only thing special about the shader was its size (< 544 
bytes). A brush_t with 4 sides is 544 bytes, and malloc was doling out double-
freed memory to AllocBrush() for terrain maps, which contain plenty of 4-sided 
brushes once _blocksize chopping happens.

Scriplib is double-freeing the file buffer. Not sure how old this bug is, 
either...