|
|
|
|
|
by wuch
3236 days ago
|
|
To provide a little bit more context, here is detailed description of this bug [0].
Curiously, they suggest that problem could be avoided by changing the check for EOF to ">=".
This is not true at all in case of C, at least as far as language semantics is concerned.
When pointer goes two past the end of array you are already in undefined behaviour land. [0] https://blog.cloudflare.com/incident-report-on-memory-leak-c... |
|