[v3] Fix money_get::do_get(..., long double&) buffer size

Paolo Carlini pcarlini@suse.de
Fri Oct 24 23:12:00 GMT 2003


Hi,

this was a pretty serious bug, with potential security
implications, pretty easy to fix, however (*)

Luckily, the monetary facets are still not in wide use.

I took the occasion to avoid some c_str() in favor of data(),
when '\0' is not really needed: appending it has a cost,
albeit minor.

Tested x86-linux, committed.

Paolo.

(*) Long term, the performance issues of our implementation
should be definitely addressed: at minimum, we must speed
up 'narrow' as suggested by Martin a while ago...

//////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_over
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031024/2ca4ef14/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_over
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031024/2ca4ef14/attachment-0001.ksh>


More information about the Gcc-patches mailing list