summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-07-23 20:39:10 +0000
committerchristos <christos@NetBSD.org>2006-07-23 20:39:10 +0000
commit8a487b533dd09b33d58273719df7c9abf8a9042b (patch)
tree973c7b2e9052cf2fc523d2f5506a17e9a8b553b4 /sys/kern/exec_script.c
parent213f1e24760b2b0e4fa3e5cda959471853b621b8 (diff)
PR/34055: Kevin Massey: Date uses a fixed 1K buffer for strftime
but does not check when strftime fails because the buffer is too small. Our implementation of strftime does not NUL terminat the buffer on failure (it does not have to; the results are undefined), so garbage gets printed. Use a dynamically allocated buffer instead.
Diffstat (limited to 'sys/kern/exec_script.c')
0 files changed, 0 insertions, 0 deletions