[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

Kees Cook report at bugs.python.org
Wed Apr 21 20:44:07 CEST 2010


Kees Cook <kees at ubuntu.com> added the comment:

The stack protector will add 8 (aligned, so possibly padded) bytes to each stack frame of functions with arrays of 8 or greater bytes.  So if things are marginal, this could make the difference between Pythons compiled with/without -fstack-protector.

N.B. if rPath is compiled with -D_FORTIFY_SOURCE=2 and -O1, then -D_FORTIFY_SOURCE=2 has no effect (it is only activated at -O2 or higher).

Details on Ubuntu's compiler flag defaults:
https://wiki.ubuntu.com/CompilerFlags

Putting MAXPATH on the stack certainly seems like a big waste of space, though.  :)

----------
nosy: +keescook

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7332>
_______________________________________


More information about the Python-bugs-list mailing list