| Anonymous | Login | Signup for a new account | 11-10-2008 11:14 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001321 | [uClibc++] Other | crash | always | 04-22-07 06:43 | 04-27-07 17:51 | ||||
| Reporter | tommi | View Status | public | ||||||
| Assigned To | gkajmowi | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | resolved | Product Version | |||||||
| Summary | 0001321: std::ifstream segfaults in reading data, when no file is open | ||||||||
| Description |
Reading from a std::ifstream without opening a file, results in a segfault. A simple case, which shows that bug is this: #include <fstream> int main(int argc, char* argv[]) { std::ifstream in; in.get(); } Reading from ifstream without a open file is expected to return traits::eof() instead of just crashing. The reason for the crash is, that basic_filebuf::underflow does not check this condition. |
||||||||
| Additional Information | Patch attached | ||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
Notes |
|
|
(0002332) gkajmowi 04-27-07 17:51 |
Fixed in SVN. I used a slightly different approach to fixing, though the result is essentially the same. |
| Copyright © 2000 - 2006 Mantis Group |