about summary refs log tree commit diff
path: root/arch/mips/bits/termios.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-10-14 18:58:15 -0400
committerRich Felker <dalias@aerifal.cx>2015-10-14 18:58:15 -0400
commit8d93cb57754f1f81f8e15bb74afd1725cead45c2 (patch)
treeb7a3a82bcdc031f34180c168726cd08e3ee7600b /arch/mips/bits/termios.h
parent6fef8cafbd0f6f185897bc87feb1ff66e2e204e1 (diff)
downloadmusl-8d93cb57754f1f81f8e15bb74afd1725cead45c2.tar.gz
musl-8d93cb57754f1f81f8e15bb74afd1725cead45c2.tar.xz
musl-8d93cb57754f1f81f8e15bb74afd1725cead45c2.zip
fix strftime handling of out-of-range struct tm fields
strftime results are unspecified in this case, but should not invoke
undefined behaviour.

tm_wday, tm_yday, tm_mon and tm_year fields were used in signed int
arithmetic that could overflow.

based on patch by Szabolcs Nagy.
Diffstat (limited to 'arch/mips/bits/termios.h')
0 files changed, 0 insertions, 0 deletions