[Python-bugs-list] [Bug #113828] getpythonregpath with null data in registry key

noreply@sourceforge.net noreply@sourceforge.net
Fri, 8 Sep 2000 23:31:48 -0700

Bug #113828, was updated on 2000-Sep-07 13:46
Here is a current snapshot of the bug.

Project: Python
Category: Windows
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 6
Summary: getpythonregpath with null data in registry key

File pc/getpathp.c

ppPaths[index] can be null but this fragment is not null protected:

len = _tcslen(ppPaths[index]);
_tcsncpy(szCur, ppPaths[index], len);

Grzegorz Makarewicz


Date: 2000-Sep-08 23:31
By: tim_one

Assigned to MarkH.  Offhand it looks like a legit complaint to me, and that the

len = _tcslen(ppPaths[index]);
_tcsncpy(szCur, ppPaths[index], len);
szCur += len;
dataSize -= len;

block should be protected against a null ppPaths[index].

For detailed info, follow this link: