diff options
author | Alan Modra <amodra@gmail.com> | 2020-12-24 16:11:03 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-12-24 22:58:14 +1030 |
commit | dccc31dee37b559219708c8d0accc7d512d51c1f (patch) | |
tree | d8a715ea7756951b41d671733c521e668622e51f /bfd/archive.c | |
parent | de34d42812a0b978b278cd344abeaee7c71fa55c (diff) | |
download | gdb-dccc31dee37b559219708c8d0accc7d512d51c1f.zip gdb-dccc31dee37b559219708c8d0accc7d512d51c1f.tar.gz gdb-dccc31dee37b559219708c8d0accc7d512d51c1f.tar.bz2 |
asan: print_vms_time signed integer overflow
I really don't think anyone cares about underflow of vms time values,
but the potential segfault on a gmtime failure is worth fixing.
* readelf.c (INT64_MIN): Define if not already defined.
(print_vms_time): Catch 64-bit overflow when converting from
vms time to posix time. Don't segfault if gmtime returns NULL.
Diffstat (limited to 'bfd/archive.c')
0 files changed, 0 insertions, 0 deletions