diff options
author | jsing <> | 2022-06-28 19:44:28 +0000 |
---|---|---|
committer | jsing <> | 2022-06-28 19:44:28 +0000 |
commit | 4edad9b6e581e10291c227e2c7fb1f3a7a686cde (patch) | |
tree | 49119ef2899ea30bdf9890fb1dd0fd5ae2e274be /src/lib/libssl/ssl_seclevel.c | |
parent | 6a00fddbb48bbfc1b0cd39ce431d282916f3be00 (diff) | |
download | openbsd-4edad9b6e581e10291c227e2c7fb1f3a7a686cde.tar.gz openbsd-4edad9b6e581e10291c227e2c7fb1f3a7a686cde.tar.bz2 openbsd-4edad9b6e581e10291c227e2c7fb1f3a7a686cde.zip |
Negate unsigned then cast to signed.
Avoid undefined behaviour by negating the unsigned value, before casting
to int64_t, rather than casting to int64_t then negating.
Fixes oss-fuzz #48499
ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_seclevel.c')
0 files changed, 0 insertions, 0 deletions