1
0

gcc7.patch 539 B

123456789101112
  1. diff -Nur gcc-gcc-6-branch-csky.orig/gcc/ubsan.c gcc-gcc-6-branch-csky/gcc/ubsan.c
  2. --- gcc-gcc-6-branch-csky.orig/gcc/ubsan.c 2018-03-10 14:10:55.000000000 +0100
  3. +++ gcc-gcc-6-branch-csky/gcc/ubsan.c 2018-03-10 21:16:06.358370414 +0100
  4. @@ -1471,7 +1471,7 @@
  5. expanded_location xloc = expand_location (loc);
  6. if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
  7. - || xloc.file == '\0' || xloc.file[0] == '\xff'
  8. + || xloc.file[0] == '\0' || xloc.file[0] == '\xff'
  9. || xloc.file[1] == '\xff')
  10. return false;