This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner, yselivanov
Date 2018-01-23.20:58:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516741115.79.0.467229070634.issue32639@psf.upfronthosting.co.za>
In-reply-to
Content
Coverity found a bug in hamt.c:

** CID 1428443:  Null pointer dereferences  (NULL_RETURNS)
/Python/hamt.c: 1058 in hamt_node_bitmap_without()


________________________________________________________________________________________________________
*** CID 1428443:  Null pointer dereferences  (NULL_RETURNS)
/Python/hamt.c: 1058 in hamt_node_bitmap_without()
1052                         assert(hamt_node_collision_count(
1053                                 (PyHamtNode_Collision*)sub_node) > 1);
1054                     }
1055     #endif
1056
1057                     PyHamtNode_Bitmap *clone = hamt_node_bitmap_clone(self);
>>>     CID 1428443:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a null pointer "clone".
1058                     Py_SETREF(clone->b_array[val_idx],
1059                               (PyObject *)sub_node);  /* borrow */
1060
1061                     *new_node = (PyHamtNode *)clone;
1062                     return W_NEWNODE;
1063                 }
History
Date User Action Args
2018-01-23 20:58:35vstinnersetrecipients: + vstinner, yselivanov
2018-01-23 20:58:35vstinnersetmessageid: <1516741115.79.0.467229070634.issue32639@psf.upfronthosting.co.za>
2018-01-23 20:58:35vstinnerlinkissue32639 messages
2018-01-23 20:58:35vstinnercreate