[sword-devel] SWBuf potential problem

Daniel Glassey dglassey at gmail.com
Fri Jun 10 10:11:57 MST 2005

While encountering other problems on my machine I've found a potential
problem with SWBuf::assureSize.

It reallocs or mallocs the buffer but doesn't check that that has
succeeded before setting the 'end' of the buffer to 0.

Patch attached that does a check. Thought I'd just check before checking it in.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: swbuff.h.diff
Type: text/x-patch
Size: 428 bytes
Desc: not available
Url : http://www.crosswire.org/pipermail/sword-devel/attachments/20050610/3cad2b20/swbuff.h.bin

More information about the sword-devel mailing list