Commit 0bad4d63 authored by Yury Selivanov's avatar Yury Selivanov Committed by GitHub

bpo-32436: Fix potential NULL dereference (#5286)

parent 9d411c11
......@@ -1055,6 +1055,10 @@ hamt_node_bitmap_without(PyHamtNode_Bitmap *self,
#endif
PyHamtNode_Bitmap *clone = hamt_node_bitmap_clone(self);
if (clone == NULL) {
return W_ERROR;
}
Py_SETREF(clone->b_array[val_idx],
(PyObject *)sub_node); /* borrow */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment