Summary: | snprintf %n does not conform to ISO C when characters are not printed | ||
---|---|---|---|
Product: | glibc | Reporter: | Vincent Lefèvre <vincent-srcware> |
Component: | stdio | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | fweimer |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | 2.24 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Vincent Lefèvre
2017-04-07 14:17:52 UTC
The description only talks about the produced characters being discarded instead of written to memory. The side effects of producing the output is still performed. In case of lack of space the output stream is just the equivalent of /dev/null. Agreed, this looks like an imprecision or a defect in the C standard. |