diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 15:21:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 15:22:19 +0200 |
commit | 6d46d37685e845ae1bf26016bcb447f9ec7803ae (patch) | |
tree | af364ff6889ec772bd2412fb59176ad80819f3a4 /external | |
parent | ed6b7d972bf1aee323947f22c6b5de430db4a9a5 (diff) |
external/python3: -fsanitize=nonnull-attribute
Change-Id: I447d1f01c24a934e643077dc271872e850b204bc
Diffstat (limited to 'external')
-rw-r--r-- | external/python3/ubsan.patch.0 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/external/python3/ubsan.patch.0 b/external/python3/ubsan.patch.0 index 39717d2d82bc..020f4bfc5440 100644 --- a/external/python3/ubsan.patch.0 +++ b/external/python3/ubsan.patch.0 @@ -22,6 +22,15 @@ This is clc or stc, together with the first byte of the jmp. */ --- Objects/listobject.c +++ Objects/listobject.c +@@ -641,7 +641,7 @@ + goto Error; + } + } +- memcpy(recycle, &item[ilow], s); ++ if (s != 0) memcpy(recycle, &item[ilow], s); + + if (d < 0) { /* Delete -d items */ + memmove(&item[ihigh+d], &item[ihigh], @@ -2036,7 +2036,7 @@ if (keys != NULL) { for (i = 0; i < saved_ob_size; i++) |