summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c
diff options
context:
space:
mode:
authortb <>2026-08-30 16:52:56 +0000
committertb <>2026-08-30 16:52:56 +0000
commit88ac71e0f8273324409f56626c4c20b5473e8b58 (patch)
tree921774f7e993ce7be4c089add15ab422415b0a40 /src/lib/libc/stdlib/reallocarray.c
parentf1d663df044f339b954b1cc4da10dceb9675130e (diff)
downloadopenbsd-88ac71e0f8273324409f56626c4c20b5473e8b58.tar.gz
openbsd-88ac71e0f8273324409f56626c4c20b5473e8b58.tar.bz2
openbsd-88ac71e0f8273324409f56626c4c20b5473e8b58.zip
PKCS7_stream: don't crash on omitted content
Do not access the PKCS7 content union without checking that it's actually populated. Add NULL checks and fail. Whether that's the correct thing to do is dubious, but since this has been broken since the "code" was written a quarter century ago, clearly nobody ever wanted to do that. Match OpenSSL behavior which also means more NULL checks than strictly make sense. CMS_stream() has very similar code, but it's not problematic in this particular way because the content isn't OPTIONAL. Part of a diff from Acts1631
Diffstat (limited to 'src/lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions