This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Debug mode output broken
Hi again Jonathan,
and, first, thanks for your work.
Shall I commit this to 3.4 and mainline?
No, sorry. It appears to paper over the real bug. Indeed, according to
the C standard
sprintf automatically writes a null char at the end of the characters
written.
It looks like for some reason the capacity of __buf is exceeded and the
null char is
written beyond the end of the buffer! A very dangerous situation, by the
way.
Could you possibly continue your work checking that?
Paolo.