• Martin Blix Grydeland's avatar
    Handle unformatable VCL_TIME to string conversion failures · 6cb9c766
    Martin Blix Grydeland authored
    For VCL_TIME values that would convert to a year element that can not fit
    in an int, gmtime_r would fail, and VTIM_format() would use random stack
    values when picking weekday and month strings.
    
    This patch changes VTIM_format to return "" when gmtime_r reports
    failures. This way the API is not changed. Callers can test for empty
    string to catch the failure if needed.
    
    VRT_TIME_string is patched to catch the VTIM_format error, and return NULL
    on failure.
    
    Fixes: #3308
    6cb9c766
Name
Last commit
Last update
..
Makefile.am Loading commit data...
binary_heap.c Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
vas.c Loading commit data...
vav.c Loading commit data...
vcli_proto.c Loading commit data...
vcli_serve.c Loading commit data...
vct.c Loading commit data...
version.c Loading commit data...
vev.c Loading commit data...
vfil.c Loading commit data...
vfl.c Loading commit data...
vin.c Loading commit data...
vjsn.c Loading commit data...
vlu.c Loading commit data...
vmb.c Loading commit data...
vnum.c Loading commit data...
vpf.c Loading commit data...
vre.c Loading commit data...
vrnd.c Loading commit data...
vsa.c Loading commit data...
vsb.c Loading commit data...
vsha256.c Loading commit data...
vss.c Loading commit data...
vsub.c Loading commit data...
vtcp.c Loading commit data...
vtim.c Loading commit data...
vus.c Loading commit data...