summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authorjsing <>2022-02-12 03:07:24 +0000
committerjsing <>2022-02-12 03:07:24 +0000
commited44c785483d961996be1105c8471657b251bf1d (patch)
tree24faa356502796536aea428de4b8a93d3628db09 /src/lib/libc/stdlib
parentd747ba3dbb49305d31bc12b12d7510eb1608c418 (diff)
downloadopenbsd-ed44c785483d961996be1105c8471657b251bf1d.tar.gz
openbsd-ed44c785483d961996be1105c8471657b251bf1d.tar.bz2
openbsd-ed44c785483d961996be1105c8471657b251bf1d.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')
0 files changed, 0 insertions, 0 deletions