diff options
| author | jsing <> | 2022-06-28 19:44:28 +0000 |
|---|---|---|
| committer | jsing <> | 2022-06-28 19:44:28 +0000 |
| commit | 8705fa453d4cc966cbe069c41ff6fda3ab038581 (patch) | |
| tree | 49119ef2899ea30bdf9890fb1dd0fd5ae2e274be /src/lib/libcrypto/buffer/buffer.c | |
| parent | 4b57b59ced3d3988203fa4192fa308ecd157c506 (diff) | |
| download | openbsd-8705fa453d4cc966cbe069c41ff6fda3ab038581.tar.gz openbsd-8705fa453d4cc966cbe069c41ff6fda3ab038581.tar.bz2 openbsd-8705fa453d4cc966cbe069c41ff6fda3ab038581.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/libcrypto/buffer/buffer.c')
0 files changed, 0 insertions, 0 deletions
