Prepare to provide OBJ_length() and OBJ_get0_data()
authortb <tb@openbsd.org>
Sat, 8 Jan 2022 21:36:39 +0000 (21:36 +0000)
committertb <tb@openbsd.org>
Sat, 8 Jan 2022 21:36:39 +0000 (21:36 +0000)
commit460715d7df44ee35d6378dbbf1abf05fba8c5d7d
treeacf17579e2c63b18fb51b9ccd277625db6482680
parent1f204c7b19506292ea1f59bed125979e6f698e7e
Prepare to provide OBJ_length() and OBJ_get0_data()

OBJ_length() turns the int obj->length into a size_t, so add
an overflow check. While obj->length should never be negative,
who knows...

ok jsing
lib/libcrypto/objects/obj_dat.c
lib/libcrypto/objects/objects.h