summaryrefslogtreecommitdiff
path: root/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-03-06 08:08:32 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-03-06 08:08:32 +0000
commit3acdf6c4b57867488e023e1aae7e452a717f8db6 (patch)
tree99a99bcc9d8a4013d2d65de847b2e6ff10aade8a /lib/libssl/tls13_client.c
parentbccc7f86e56ecd951db75c5d4bca60acf4d339f1 (diff)
ASN.1 enc: check ASN1_item_ex_i2d() consistency
The i2d API design is: call a function first with a pointer to NULL, get the length, allocate a buffer, call the function passing the buffer in. Both calls should be checked since ther are still internal allocations. At the heart of ASN.1 encoding, this idiom is used and the second call is assumed to succeed after the length was determined. This is far from guaranteed. Check that the second call returns the same length and error otherwise. ok jsing
Diffstat (limited to 'lib/libssl/tls13_client.c')
0 files changed, 0 insertions, 0 deletions