summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authorjsing <>2022-02-12 03:07:24 +0000
committerjsing <>2022-02-12 03:07:24 +0000
commit4f6b3f124aaba62ebcf7e04e6536475e0aa3d1d2 (patch)
tree24faa356502796536aea428de4b8a93d3628db09 /src/lib/libc/stdlib/random.c
parent7676cf85d21fefda1d234d70fb1f1f519919aff8 (diff)
downloadopenbsd-4f6b3f124aaba62ebcf7e04e6536475e0aa3d1d2.tar.gz
openbsd-4f6b3f124aaba62ebcf7e04e6536475e0aa3d1d2.tar.bz2
openbsd-4f6b3f124aaba62ebcf7e04e6536475e0aa3d1d2.zip
Avoid potential single byte overread in asn1_parse2().
A fix for this was previously commited in r1.32, however while this added a bounds check the logic means we still fall through and perform the overread. Fix the logic such that we only log the error if the bounds check fails. While here, flip the test around such that we check for validity then print (which is more readable and matches earlier code). ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions