Page MenuHome GnuPG

unclosed file descriptor in gnupg-1.4.2
Closed, ResolvedPublic

Description

Description

The function is init_pool() in util/secmem.c, lines 234~245.
A file descriptor is opened to mmap() /dev/zero, but it's never closed. It would be OK to close() it since it wouldn't remove the mapping.

Fix

close(fd);

Event Timeline

Fixed. See below. Also in libgcrypt and pinentry.

2006-07-29 Marcus Brinkmann <marcus@g10code.de>

  • secmem.c (init_pool): Close FD after establishing the mapping.