[Libreoffice-commits] core.git: external/python3

Stephan Bergmann sbergman at redhat.com
Tue Jun 2 06:22:57 PDT 2015


 external/python3/ubsan.patch.0 |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 6d46d37685e845ae1bf26016bcb447f9ec7803ae
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 2 15:21:41 2015 +0200

    external/python3: -fsanitize=nonnull-attribute
    
    Change-Id: I447d1f01c24a934e643077dc271872e850b204bc

diff --git a/external/python3/ubsan.patch.0 b/external/python3/ubsan.patch.0
index 39717d2..020f4bf 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++)


More information about the Libreoffice-commits mailing list