Home GnuPG

Fix incorrect overflow guard condition in _ksba_ber_read_tl

Description

Fix incorrect overflow guard condition in _ksba_ber_read_tl

* src/ber-help.c (_ksba_ber_read_tl): Remove useless extra overflow
  check.

The removed first condition is not necessary and could actually lead
to skipping the actual overflow check with the second condition. But
note that NHDR is always small in practice and thus this bug is not
immediately exploitable.

Details

Provenance
wernerAuthored on Tue, May 5, 11:49 AM
Parents
rKc44cc98460ea: Fix silent truncation of 64 bit length fields.
Branches
Unknown
Tags
Unknown
Tasks
T8247: Incorrect overflow guard condition in _ksba_ber_read_tl