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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 10 Sep 2000 02:16:02 -0700


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

Project: Python
Category: Windows
Status: Closed
Resolution: Fixed
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].
-------------------------------------------------------

Date: 2000-Sep-10 02:16
By: mhammond

Comment:
Fixed in rev 1.21 of getpathp.c
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=113828&group_id=5470