| Summary: | p_read, p_send not intialized | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Tom Hanson <THanson> |
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | normal | CC: | djm, dtucker |
| Priority: | P2 | ||
| Version: | 5.0p1 | ||
| Hardware: | Other | ||
| OS: | Other | ||
|
Description
Tom Hanson
2008-08-12 01:31:14 AEST
Uh, it's a static global. ISO C specifies that it must already be zeroed. eg http://www.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf section 6.7.8.10: "If an object that has static storage duration is not initialized explicitly, then: - if it has pointer type, it is initialized to a null pointer; - if it has arithmetic type, it is initialized to (positive or unsigned) zero; - if it is an aggregate, every member is initialized (recursively) according to these rules;" OpenSSH is not and has never claimed to be thread safe. Close bugs fixed/reviewed for openssh-5.2 release |