Kaydet (Commit) 1c989f8e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/python3: -fsanitize=nonnull-attribute

Change-Id: Ib589b638a81bfb77fd74da8b15ae7b11cfd2b58b
üst c710b435
......@@ -20,6 +20,17 @@
/* Set the carry bit iff the function uses any sse registers.
This is clc or stc, together with the first byte of the jmp. */
--- Objects/bytearrayobject.c
+++ Objects/bytearrayobject.c
@@ -294,7 +294,7 @@
PyBuffer_Release(&vo);
return NULL;
}
- memcpy(self->ob_bytes + mysize, vo.buf, vo.len);
+ if (vo.len != 0) memcpy(self->ob_bytes + mysize, vo.buf, vo.len);
PyBuffer_Release(&vo);
Py_INCREF(self);
return (PyObject *)self;
--- Objects/listobject.c
+++ Objects/listobject.c
@@ -641,7 +641,7 @@
......
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