[*** Not tested as I don't have Windows running right now! ***] · python/cpython@25e1726 · GitHub
Skip to content

Commit 25e1726

Browse files
committed
[*** Not tested as I don't have Windows running right now! ***]
Trent Mick <trentm@activestate.com>: Fix PC/msvcrtmodule.c and PC/winreg.c for Win64. Basically: - sizeof(HKEY) > sizeof(long) on Win64, so use PyLong_FromVoidPtr() instead of PyInt_FromLong() to return HKEY values on Win64 - Check for string overflow of an arbitrary registry value (I know that ensuring that a registry value does not overflow 2**31 characters seems ridiculous but it is *possible*). Closes SourceForge patch #100517.
1 parent 7efcafb commit 25e1726

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

PC/_winreg.c

Lines changed: 19 additions & 2 deletions

PC/msvcrtmodule.c

Lines changed: 5 additions & 2 deletions

0 commit comments

Comments
 (0)