[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

Details: 
File pc/getpathp.c
Function:getpythonregpath

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

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

Grzegorz Makarewicz

Follow-Ups:

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

Comment:
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:
http://sourceforge.net/bugs/?func=detailbug&bug_id=113828&group_id=5470