This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
This patch fixes a couple of bugs in ios_base pword
and iword handling.
When a call to ios_base::pword or ios_base::iword
can't be satisfied, the spec says to set badbit, but
nothing else. We shouldn't delete the arrays in
this case - it happens in the destructor and an
erase_event may be sent to callbacks that still
expect the other entries to exist still.
This should be applied to both 3.3 and mainline.
Jerry
2003-03-02 Jerry Quinn <jlquinn at optonline dot net>
* src/ios.cc (ios_base::_M_grow_words): Don't delete
_M_word on new
failure. Throw exception if badbit and
exception mask when ix >=
numeric_limits<int>::max().
Attachment:
mgrowword.patch
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |