Home GnuPG

Fix percent unescaping.

Description

Fix percent unescaping.

* src/utils.c (percent_unescape): Fix output string length.

Without *p = 0, the function produces wrong results
for any strings with escapes, for example:

"%55" -> "U55" (should be "U")

  • Signed-off-by: Ineiev <ineiev@gnu.org>

Details

Provenance
Ineiev <ineiev@gnu.org>Authored on May 22 2018, 10:28 AM
wernerCommitted on Jun 5 2018, 7:19 PM
Parents
rGPAfa562297a5ae: Eliminate arbitrary length limit on labels.
Branches
Unknown
Tags
Unknown