Skip to content
Commit 85e6d8b4 authored by Arjun Shankar's avatar Arjun Shankar
Browse files

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: default avatarMartin Coufal <mcoufal@redhat.com>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent 200ae471
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment