Home GnuPG
Diffusion GnuPG 8ac92f0e807a

scd: Fix memory leak in ccid-driver.

Description

scd: Fix memory leak in ccid-driver.

* scd/ccid-driver.c (ccid_dev_scan): Use loop var and not the count.

Due to an assignment out of bounds this might lead to a crash if there
are more than 15 readers. In any case it fixes a memory leak.
Kudos to the friendly auditor who found that bug.

Details

Provenance
wernerAuthored on Apr 14 2022, 10:04 AM
Parents
rG61038be8134c: tests: Fix warning in common/t-ssh-utils.c
Branches
Unknown
Tags
Unknown