On Sun, 27 Nov 2016, Martin Sebor wrote:

> Finally, the patch also tightens up the constraint on the upper bound
> of bounded functions like snprintf to be INT_MAX.  The functions cannot
> produce output in excess of INT_MAX + 1 bytes and some implementations
> (e.g., Solaris) fail with EINVAL when the bound is INT_MAX or more.
> This is the subject of PR 78520.

Note that failing with large bounds is questionable (there is an apparent 
conflict between ISO C, where passing a large bound seems valid, and 
POSIX, where large bounds require errors; see 
<http://austingroupbugs.net/view.php?id=761>; I'm not sure if any liaison 
issue for this ever got passed to WG14).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to