[ python-Bugs-851056 ] winreg can segfault

SourceForge.net noreply at sourceforge.net
Sat Nov 29 01:57:33 EST 2003


Bugs item #851056, was opened at 2003-11-29 01:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=851056&group_id=5470

Category: Windows
Group: Python 2.3
Status: Open
Resolution: None
Priority: 7
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Guido van Rossum (gvanrossum)
Summary: winreg can segfault

Initial Comment:
(I need this fixed before 2.3.3 since it is critical to
something at work. I therefore promise to do it myself.)

I tracked down a segfault on Windows (XP) in some
windows registry traversal code I wrote.  It uses
_winreg.c, the crash is in PyEnumValue. I I think the
cause is that the requested value was very large
(several 100 KB) and the code does an alloca() for that
much.  I'm guessing this overflows the stack. The code
needs to be rewritten to avoid alloca() I fear...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=851056&group_id=5470



More information about the Python-bugs-list mailing list