Kaydet (Commit) 8890e3f4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/poppler: -fsanitize=nonnull-attribute

Change-Id: I17c825a0e24e8993503eeaf0d1136c143d990a12
üst b4f9145f
--- goo/GooString.cc
+++ goo/GooString.cc
@@ -161,7 +161,7 @@
// assert(s != s1) the roundedSize condition ensures this
if (newLength < length) {
memcpy(s1, s, newLength);
- } else {
+ } else if (length != 0) {
memcpy(s1, s, length);
}
if (s != sStatic)
--- poppler/Stream.cc
+++ poppler/Stream.cc
@@ -2966,12 +2966,12 @@
......
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