[Python-bugs-list] [ python-Bugs-478001 ] uninit mem read w/signals
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 04 Nov 2001 11:45:43 -0800
Bugs item #478001, was opened at 2001-11-04 06:54
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478001&group_id=5470
Category: Parser/Compiler
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
>Assigned to: Barry Warsaw (bwarsaw)
Summary: uninit mem read w/signals
Initial Comment:
if the signal()/sigaction() fails,
uninitialized memory is returned.
the attached patch fixes the problem
(didn't test signal() path, only the sigaction() path)
Neal
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2001-11-04 11:45
Message:
Logged In: YES
user_id=31435
Assigned to Barry. Neal's surely correct that we shouldn't
be ignoring errors, but returning NULL isn't right either.
Should we force return of SIG_ERR then? That's the only
*natural* "error return" value, and there's a backward
compatibility problem here since we don't document anything
about error returns for the {get,set}sig functions, nor do
any of the places we call these check for an error return.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478001&group_id=5470