BUG: Invalid Extraction from istrstream Does Not Set failbit (119393)
The information in this article applies to:
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 1.5
- Microsoft Visual C++ 1.51
- Microsoft Visual C++ 1.52
- Microsoft Visual C++ 2.0
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q119393 SYMPTOMS
If you extract an integer of an invalid octal value from istrstream,
0 is extracted and the ios::failbit is not set. In addition, the
ios::fail() function returns FALSE, incorrectly indicating that the
istrstream is valid.
RESOLUTION
Use the manipulators (dec, hex, oct, binary, text) explicitly to set
the correct conversion base for the characters represented by the
stream.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 4/24/2006 |
---|
Keywords: | kbBug kbLangCPP KB119393 |
---|
|