Skip to content
Snippets Groups Projects
Commit ed1f4ab1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Initialize time zone variable (zone)

As found and reported by Talisam author, apam (HAPPYLND).

sscanf() won't initialize the buffer of the argument passed if the format string is not matched, so when there was no hexadecimal/SMB timezone value, the timezone specified in the ISO date/time string (if any) would be overwritten with 0, converted from the uninitialized 'zone' variable (unlikely to be valid hex-ASCII chars). Thanks apam!
parent 47bb6691
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2469 passed