Home GnuPG
Diffusion GPGME 10f2e1c30be6

w32: Better protect the IO-system's fd_table
10f2e1c30be6Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

w32: Better protect the IO-system's fd_table

* src/w32-io.c (fd_table_lock): New.
(new_fd): Lock allocation of a new slot.
(release_fd): Lock deallocation of a slot.

Note that we lock only the allocation but not the sanitiy checks we do
further down in the code.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 9 2016, 8:33 AM
Parents
rM3509cf2f9846: cpp: Add API for swdb queries
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM10f2e1c30be6: w32: Better protect the IO-system's fd_table (authored by Werner Koch <wk@gnupg.org>).Nov 9 2016, 8:34 AM