Home GnuPG
Diffusion GnuPG 94d13f53a3b4

common: Protect against a theoretical integer overflow in tlv.c

Description

common: Protect against a theoretical integer overflow in tlv.c

* common/tlv.c (parse_ber_header): Protect agains integer overflow.

Although there is no concrete case where we use the (nhdr + length),
it is better to protect against this already here.

Details

Provenance
wernerAuthored on Oct 7 2022, 2:12 PM
Parents
rG64002ffdfc17: po: Fix wrong LF in the German translation
Branches
Unknown
Tags
Unknown