about summary refs log tree commit diff
path: root/time/bits
diff options
context:
space:
mode:
authorArjun Shankar <arjun@redhat.com>2023-06-06 19:20:31 +0200
committerArjun Shankar <arjun@redhat.com>2023-06-06 21:14:46 +0200
commit85e6d8b4175fcb195011a0a1bad37d6f3b2355db (patch)
tree89dc327b8ac6be8557b931c9614cef53f33757c0 /time/bits
parent200ae471b65354eed6f1bc7658f898f2f380951a (diff)
downloadglibc-85e6d8b4175fcb195011a0a1bad37d6f3b2355db.tar.gz
glibc-85e6d8b4175fcb195011a0a1bad37d6f3b2355db.tar.xz
glibc-85e6d8b4175fcb195011a0a1bad37d6f3b2355db.zip
time: Fix use-after-free in getdate
getdate would free the buffer pointed to by the result of its call to
strptime, then reference the same buffer later on -- leading to a
use-after-free.  This commit fixes that.

Reported-by: Martin Coufal <mcoufal@redhat.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'time/bits')
0 files changed, 0 insertions, 0 deletions