[ python-Bugs-851056 ] winreg can segfault

SourceForge.net noreply at sourceforge.net
Sun Nov 30 17:13:15 EST 2003


Bugs item #851056, was opened at 2003-11-29 01:57
Message generated for change (Comment added) made by gvanrossum
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: Closed
>Resolution: Fixed
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...

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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-11-30 17:13

Message:
Logged In: YES 
user_id=6380

I've fixed this in 2.4 and 2.3. (I still need to do a test
with a truly large registry value, but the only machine
where I can reproduce this is not in my possession, so it
may take a while).

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

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