[libstdc++ PATCH] money_get::do_get subscripts empty string

Doug Gregor dgregor@apple.com
Mon Jun 30 19:08:00 GMT 2003


This patch fixes an unsafe loop in money_get::do_get that invokes 
undefined behavior when __tmp_units is an empty string (this does 
occur, and was tripping up the debug mode test runs). Tested on 
powerpc-apple-darwin6.6; no regressions.

Ok to commit?

	Doug

-------------- next part --------------
A non-text attachment was scrubbed...
Name: do_get_zeroes.ChangeLog
Type: application/octet-stream
Size: 142 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030630/ae32f04a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: do_get_zeroes.patch
Type: application/octet-stream
Size: 843 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030630/ae32f04a/attachment-0001.obj>


More information about the Libstdc++ mailing list