summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authortb <>2026-08-30 16:52:07 +0000
committertb <>2026-08-30 16:52:07 +0000
commitf1d663df044f339b954b1cc4da10dceb9675130e (patch)
treee7192542c7c13523b2585c40d9c1c6d40ce83694 /src/lib/libc/stdlib/random.c
parent243bc4037954a2ed4a91d6ec8f2c796c1c5da943 (diff)
downloadopenbsd-f1d663df044f339b954b1cc4da10dceb9675130e.tar.gz
openbsd-f1d663df044f339b954b1cc4da10dceb9675130e.tar.bz2
openbsd-f1d663df044f339b954b1cc4da10dceb9675130e.zip
"Stream" valid PKCS7 objects with omitted content
The PKCS#7 standard marks the content element of the ContentInfo OPTIONAL. Accordingly, a PKCS#7 object only containing a Content Type OID is valid: SEQUENCE { OBJECT_IDENTIFIER { 1.2.840.113549.1.7.4 } } Deserializing such an object works and therefore streaming should at least have the decency of not segfaulting. Of course there's nothing decent about PKCS#7 be it the standard or its OpenSSL "implementation". Exercises a problem reported by Acts1361 and currently crashes. To be fixed in pk7_lib.c r1.32.
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions