Anonymous | Login | Signup for a new account | 12-17-2024 08:45 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 | ||||
0005632 | [Resin] | major | always | 01-14-14 08:45 | 09-08-14 17:08 | ||||
Reporter | bean | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.38 | ||||||
Summary | 0005632: calculate_poll_result() returns uninitialized value | ||||||||
Description |
In std.c, calculate_poll_result() is supposed to return an int value. But it has a path that doesn't return anything. In that case, the caller gets a bogus return value. This is especially dangerous as this becomes the return value from std_read() |
||||||||
Additional Information |
--------------------- Here is the bad method: --------------------- static int calculate_poll_result(connection_t *conn, int poll_result) { if (poll_result == 0) { return TIMEOUT_EXN; } else if (poll_result < 0 && errno != EINTR) { return read_exception_status(conn, errno); } /* missing return here */ } |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 26 unique queries executed. |