solaris asctime_r vs POSIX #858

Closed
rurban opened this Issue Oct 5, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@rurban
Member

rurban commented Oct 5, 2012

With _POSIX_PTHREAD_SEMANTICS or _POSIX_C_SOURCE defined
solaris cc uses the POSIX API for asctime_r, i.e. two args, not three.

In practice it is recommended not to use a buffer-overflow sensitive asctime at all, rather strftime.
gnulib disabled it already. wrong years can lead to overflows

Work in branch rurban/asctime_r-gh858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment