Author vstinner
Recipients eric.smith, nanjekyejoannah, pablogsal, rhettinger, serhiy.storchaka, terry.reedy, vstinner
Date 2022-01-14.01:54:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642125293.31.0.201717193273.issue46280@roundup.psfhosted.org>
In-reply-to
Content
#389
Modules/_tracemalloc.c:1245: error: Null Dereference
  pointer `traces2` last assigned on line 1243 could be null and is dereferenced by call to `_Py_hashtable_destroy()` at line 1245, column 9.
  1243.     _Py_hashtable_t *traces2 = tracemalloc_copy_traces(traces);
  1244.     if (_Py_hashtable_set(domains2, TO_PTR(domain), traces2) < 0) {
  1245.         _Py_hashtable_destroy(traces2);
                ^
  1246.         return -1;
  1247.     }

That's a real bug: I wrote PR #30591 to fix it.


Whereas the following one must be ignored, since the function does crash (read at NULL) on purpose:

#360
Modules/faulthandler.c:1025: error: Null Dereference
  pointer `x` last assigned on line 1024 could be null and is dereferenced at line 1025, column 9.
  1023.     faulthandler_suppress_crash_report();
  1024.     x = NULL;
  1025.     y = *x;
                ^
  1026.     return PyLong_FromLong(y);
  1027.
History
Date User Action Args
2022-01-14 01:54:53vstinnersetrecipients: + vstinner, rhettinger, terry.reedy, eric.smith, serhiy.storchaka, pablogsal, nanjekyejoannah
2022-01-14 01:54:53vstinnersetmessageid: <1642125293.31.0.201717193273.issue46280@roundup.psfhosted.org>
2022-01-14 01:54:53vstinnerlinkissue46280 messages
2022-01-14 01:54:53vstinnercreate