|
[
Permlink
| « Hide
]
Martin Sebor added a comment - 16/Mar/08 11:05 PM
Hmm, 0.printf
Attached a patch.
ChangeLog: 2008-03-16 Martin Sebor <sebor@roguewave.com>
STDCXX-765
* tests/src/fmt_bits.cpp (_rw_bmpfmt): NUL-terminated string so that
it can be appended to using the %{+} directive, taking care not to
make the NUL a part of the formatted string.
(_rw_fmtflags): Same.
(_rw_fmtevent): Same.
(_rw_fmtlc): Same.
I stepped through the code and I think I've fixed all the occurrences of the problem – the 0.printf.cpp
Btw., about your proposed patch. I think the approach is correct (my patch does essentially the same thing); the one problem that jumps out at me is that it writes the terminating NUL directly to the buffer without making sure there's sufficient room.
The %{If} and %{Ie} format's along with %{Lc} format weren't exercised in 0.printf until this
I found this bug when I worked on 22.locale.num.put As for the my patch. It's not a patch, it's just light's the required steps to fix this bug.
I have reviewed your patch and patch is ok.
Patch committed in r638391
Will close after integrating to 4.2.x in the next bulk merge. Merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||