[Pkg-chromium-maint] Bug#696299: chromium-browser: Sets FD_CLOEXEC incorrectly with F_SETFL instead of F_SETFD
guillem at debian.org
Wed Dec 19 02:12:41 UTC 2012
User: debian-bsd at lists.debian.org
This package contains code that tries to set the FD_CLOEXEC flag for a
file descriptor, but it does using F_SETFL instead of F_SETFD.
Using that value on F_SETFL is just wrong, and might make the call fail
on some systems, as it's requesting to set an undetermined flag. For
example on GNU/* FD_CLOEXEC has value 1, which matches with O_WRONLY.
This might cause the code to at least leak file descriptors, and at
worst to terminate execution.
Attached a patch fixing this. (I'm filing bug reports for webkit and
the other webkit embedding packages too.)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1650 bytes
Desc: not available
More information about the Pkg-chromium-maint