summaryrefslogtreecommitdiff
path: root/src/fr-process.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-19 16:40:15 +0100
committerinfirit <[email protected]>2014-11-19 19:36:03 +0100
commit4951d61a5d544ac07d194194f789d6bdf6f7c835 (patch)
tree4be5bd3cc013faac68b2510989f6f34b07ae0187 /src/fr-process.c
parentcca09255880c19f1abb3008a2835aee5dfc7e80a (diff)
downloadengrampa-4951d61a5d544ac07d194194f789d6bdf6f7c835.tar.bz2
engrampa-4951d61a5d544ac07d194194f789d6bdf6f7c835.tar.xz
Prevent a NULL pointer deref in mktime_from_string().
It's possible to call mktime_from_string() with NULL arguments for day, month and year. This would in turn lead to calling atoi(NULL), which leads to a crash. So instead fill in any NULL values with the corresponding unit from Jan 1st 1970. Based on FR commit: 2899c092f249a4fa822a896baf128b6c8c75b634 From: Jasper Lievisse Adriaanse <[email protected]>
Diffstat (limited to 'src/fr-process.c')
0 files changed, 0 insertions, 0 deletions