diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-08-10 16:51:27 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-08-10 16:51:27 +0000 |
commit | eb990c986348bc45fdc34e578c61ea930bc896c4 (patch) | |
tree | 7f2a36ada9839bd5e092cf6c4186c070103953f3 /sys/scsi | |
parent | 2ec6874bfda2a0a09a5341166180f6417d3f97c8 (diff) |
Avoid signed integer overflow due to unary negation
The current X509_print_ex() tries too hard pretty printing negative
serialNumbers (which shouldn't occur in the first place). In particular,
negating LONG_MAX leads to signed overflow. Ditch the code dealing with
negative serialNumbers representable as long and fall back to the long
form printing. This simplifies the code and fixes
oss-fuzz #49944
with/ok jsing
Diffstat (limited to 'sys/scsi')
0 files changed, 0 insertions, 0 deletions