This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/87096] "Optimised" snprintf is not POSIX conformant


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87096

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
I find the POSIX requirement to fail when n is greater than INT_MAX to be in
conflict with C.  I've submitted a defect to the Austin Group:
  http://austingroupbugs.net/view.php?id=1219
At the same time, the POSIX requirement makes sense to me since it makes the
function safer.  So I've also brought this up in WG14 to see if C would be
willing to adopt the POSIX requirement.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]