diff options
author | tb <> | 2023-08-17 09:13:01 +0000 |
---|---|---|
committer | tb <> | 2023-08-17 09:13:01 +0000 |
commit | 46b81a642e3087476fa3ad74e16750d722addf77 (patch) | |
tree | 5255d051ca19caeaa976cc59d09f34a18a21bec2 /src/lib/libcrypto/objects/obj_dat.c | |
parent | cd5112ed9bc9b4dd6d2bde1d837c9d2278d87b3a (diff) | |
download | openbsd-46b81a642e3087476fa3ad74e16750d722addf77.tar.gz openbsd-46b81a642e3087476fa3ad74e16750d722addf77.tar.bz2 openbsd-46b81a642e3087476fa3ad74e16750d722addf77.zip |
Avoid memcmp(NULL, x, 0) in OBJ_cmp()
If a->length is 0, either a->data or b->data could be NULL and memcmp()
will rely on undefined behavior to compare them as equal. So avoid this
comparison in the first place.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/objects/obj_dat.c')
0 files changed, 0 insertions, 0 deletions