Index: src/core/SkBuffer.cpp |
diff --git a/src/core/SkBuffer.cpp b/src/core/SkBuffer.cpp |
index 32a8011ac787a34f26ab1f57869aba1b7b5e180e..590b05b859824ff2ba0d35952d23396a87c95c83 100644 |
--- a/src/core/SkBuffer.cpp |
+++ b/src/core/SkBuffer.cpp |
@@ -34,11 +34,12 @@ size_t SkRBuffer::skipToAlign4() |
return n; |
} |
-void SkRBufferWithSizeCheck::read(void* buffer, size_t size) { |
+bool SkRBufferWithSizeCheck::read(void* buffer, size_t size) { |
fError = fError || (fPos + size > fStop); |
if (!fError && (size > 0)) { |
readNoSizeCheck(buffer, size); |
} |
+ return !fError; |
} |
void* SkWBuffer::skip(size_t size) |