You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The std::runtime_error thrown from the foo_buf constructor should be caught and main should return 1.
STL version
Visual Studio version
Microsoft Visual Studio Enterprise 2019
Version 16.6.5
I don't see any reason why an std::streambuf implementation shouldn't be allowed to throw and this works fine with other compilers and library implementations (Gnu and LLVM), so I assume this could be a bug in this STL implementation.
The text was updated successfully, but these errors were encountered:
laudrup
changed the title
<header>: Crash if custom std::streambuf implementation throws
Crash if custom std::streambuf implementation throws
Jul 29, 2020
Describe the bug
Constructing an std::istream with a custom std::streambuf that throws on construction causes an access violation.
Command-line test case
Expected behavior
The
std::runtime_error
thrown from the foo_buf constructor should be caught and main should return 1.STL version
I don't see any reason why an std::streambuf implementation shouldn't be allowed to throw and this works fine with other compilers and library implementations (Gnu and LLVM), so I assume this could be a bug in this STL implementation.
The text was updated successfully, but these errors were encountered: