Page MenuHome GnuPG

"free(): invalid pointer" from --clearsign
Testing, NormalPublic

Description

Observed in 2.3.1:

It seems using --clearsign creates some memory corruption. To reproduce, set MALLOC_CHECK_=2 and (probably not required) MALLOC_PERTURB_=21 before running the test suite. First failing check is <standard>/ tests/openpgp/clearsig.scm.

The error is most likely triggered in the final xfree (afx); statement in armor.c:release_armor_context. I have no reason to assume this was fixed since the 2.3.1 release.

Revisions and Commits

Event Timeline

gniibe changed the task status from Open to Testing.May 11 2021, 8:43 AM
gniibe triaged this task as Normal priority.

FWIW, we can and should run our test suite under valgrind from time to time

make check TESTFLAGS=--parallel with_valgrind=1