Thien-Thi Nguyen wrote:
I believe the C11 spec describes this behavior in §6.5.6 ¶8,
"Additive Operators" (in my draft copy, at least). Is that
correct? Anywhere else i should look to learn more?
Yes, that's the place where the standard says the behavior is undefined;
I don't know of a bette
() Paul Eggert
() Sun, 31 Aug 2014 19:23:53 -0700
The recent change [...] introduced a bug because 'tmp + width'
has undefined behavior if the resulting pointer would fall
outside the containing buffer (this is true even though the
pointer is not dereferenced).
I believe the C11 spec
The recent change to gnulib's vasnprintf module, which replaced 'p - tmp
< width' with 'p < tmp + width', did not fix any bugs, and introduced a
bug because 'tmp + width' has undefined behavior if the resulting
pointer would fall outside the containing buffer (this is true even
though the point