Home GnuPG

Fix an OOB read access in _ksba_dn_to_str.
6be61daac047Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix an OOB read access in _ksba_dn_to_str.

* src/dn.c (append_utf8_value): Use a straightforward check to fix an
off-by-one.

The old fix for the problem from April 2015 had an off-by-one in the
bad encoding handing.

Details

Provenance
wernerAuthored on May 3 2016, 4:01 PM
Parents
rKa7eed17a0b2a: Fix possible read access beyond the buffer.
Branches
Unknown
Tags
Unknown