[issue4463] Parameters and result of PyList_GetItem() are not validated

2008-11-29 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Python/import.c lines: 1078-1082: for (j = 0; j < nhooks; j++) { PyObject *hook = PyList_GetItem(path_hooks, j); if (hook == NULL) return NULL; importer = PyOb

[issue4463] Parameters and result of PyList_GetItem() are not validated

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Python/import.c(get_path_importer) Lines 1079 PyString_Check() is not called on the result of PyList_GetItem() and the parameters of PyList_GetItem() are not validated before the method is called. -- components: None mes