* process.c: Add sanity checks for file descriptors.
commit12dc5429352223f7ba8314d2e16177036a762733
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Jul 2014 06:24:07 +0000 (7 23:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Jul 2014 06:24:07 +0000 (7 23:24 -0700)
tree4563d8e1b2a3d5f091d7daf5a3533a0934b3f29a
parentffcba0a9a63685dc43bb381b9ab7dbd695f50ded
* process.c: Add sanity checks for file descriptors.

(wait_reading_process_output, Fprocess_filter_multibyte_p):
Check that infd is nonnegative before using it as an fd.
(read_and_dispose_of_process_output, Fprocess_send_eof):
Likewise, for outfd.
(wait_reading_process_output): Omit unnecessary check of infd.

Fixes: debbugs:17844
src/ChangeLog
src/process.c