Home GnuPG
Diffusion GnuPG c4b14be48fe9

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
rGe99670f944bc: scd:p15: Improve the PIN prompt for Genua cards.
Branches
Unknown
Tags
Unknown