summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/obj_dat.c
diff options
context:
space:
mode:
authortb <>2023-08-17 09:13:01 +0000
committertb <>2023-08-17 09:13:01 +0000
commit6471b8f7fa3b39cc42e96f0ab3cfb2ea11a226c5 (patch)
tree5255d051ca19caeaa976cc59d09f34a18a21bec2 /src/lib/libcrypto/objects/obj_dat.c
parent52bb4e8ef3e9e146385374bd3d5c7fc7cf80b3ed (diff)
downloadopenbsd-6471b8f7fa3b39cc42e96f0ab3cfb2ea11a226c5.tar.gz
openbsd-6471b8f7fa3b39cc42e96f0ab3cfb2ea11a226c5.tar.bz2
openbsd-6471b8f7fa3b39cc42e96f0ab3cfb2ea11a226c5.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