Home GnuPG

spawn:w32: Fix use-after-scope of handle array.

Description

spawn:w32: Fix use-after-scope of handle array.

* src/spawn-w32.c (_gpgrt_process_spawn): Move the hd[32] array
declaration from inside the inner block to the function scope, so that
the array remains live when CreateProcessW is called.

Details

Provenance
mfilippovAuthored on Mar 16 2026, 4:52 PM
gniibeCommitted on Mar 17 2026, 1:31 AM
Parents
rEe5a81daca8e0: build: Revert pkg-config requirement.
Branches
Unknown
Tags
Unknown