Skip to content

Commit 3a60ca3

Browse files
committed
Add issue to the comment
1 parent 2082edb commit 3a60ca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/obmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ _PyObject_MiRealloc(void *ctx, void *ptr, size_t nbytes)
363363
_mi_memcpy((char*)newp + offset, (char*)ptr + offset, copy_size - offset);
364364
}
365365
else {
366-
// memcpy(dst, NULL, 0) is undefined behavior. Guard against it.
366+
// memcpy(dst, NULL, 0) is undefined behavior. See gh-151297.
367367
if mi_likely(ptr) {
368368
_mi_memcpy(newp, ptr, copy_size);
369369
}

0 commit comments

Comments
 (0)