This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libstdc++ PATCH] money_get::do_get subscripts empty string
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Doug Gregor <dgregor at apple dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jun 2003 14:15:19 -0500
- Subject: Re: [libstdc++ PATCH] money_get::do_get subscripts empty string
- References: <29CB9CFE-AB2E-11D7-92E0-00039354D67A@apple.com>
>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.
Interesting. Can you show me how this happens? I'm using a slightly
different vesion of the underlying locale code, so something that is
making your failure obvious would be appreciated.
-benjamin