mirror of https://gitlab.com/ita1024/waf.git
Assert against invalid inputs in Utils.run_prefork_process
This commit is contained in:
parent
cddc5552e4
commit
cc9374b646
|
@ -895,7 +895,10 @@ def run_prefork_process(cmd, kwargs, cargs):
|
|||
raise OSError('Preforked sub-process %r died' % proc.pid)
|
||||
|
||||
process_pool.append(proc)
|
||||
ret, out, err, ex, trace = cPickle.loads(base64.b64decode(obj))
|
||||
lst = cPickle.loads(base64.b64decode(obj))
|
||||
# Jython wrapper failures (bash/execvp)
|
||||
assert len(lst) == 5
|
||||
ret, out, err, ex, trace = lst
|
||||
if ex:
|
||||
if ex == 'OSError':
|
||||
raise OSError(trace)
|
||||
|
|
Loading…
Reference in New Issue