summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl
diff options
context:
space:
mode:
authortb <>2024-12-11 11:22:06 +0000
committertb <>2024-12-11 11:22:06 +0000
commit9b082e3d93019c6ea59a61073a6eba48ace641b8 (patch)
tree2b9df34d0b7105df887b2e6eed474f8d783767bf /src/usr.bin/openssl
parentd87deb6ad0f26124c4c49ac4d9699a8be4a0ea8c (diff)
downloadopenbsd-9b082e3d93019c6ea59a61073a6eba48ace641b8.tar.gz
openbsd-9b082e3d93019c6ea59a61073a6eba48ace641b8.tar.bz2
openbsd-9b082e3d93019c6ea59a61073a6eba48ace641b8.zip
Avoid an oob access in asn1_item_free()
As explained in a comment, this needs to loop backwards and the last tt-- ends up pointing at &it->templates[-1], which isn't ok. Use a simple way of looping, which is also ugly and involves some type confusion as pointed out by claudio. However, type confusion is common in libcrypto's asn1 code and won't be fixed anytime soon anyway. ok jsing
Diffstat (limited to 'src/usr.bin/openssl')
0 files changed, 0 insertions, 0 deletions