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 Mon, Mar 16, 4:52 PM
gniibeCommitted on Tue, Mar 17, 1:31 AM
Parents
rEe5a81daca8e0: build: Revert pkg-config requirement.
Branches
Unknown
Tags
Unknown
References
HEAD -> master