[gs-commits] mupdf 1.16.1.55 Avoid signedness issues with lexer buffer

[email protected] (Sebastian Rasmussen) Tue, 1 Oct 2019 14:55:50 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit 0c41b8bc36b73c4915266e262d4ca6aa11a46886
Author: Sebastian Rasmussen <[email protected]>
Date:   Fri Sep 27 17:23:17 2019 +0200

    Avoid signedness issues with lexer buffer.

diff --git a/include/mupdf/pdf/document.h b/include/mupdf/pdf/document.h
index 89a534f..55bd877 100644
--- a/include/mupdf/pdf/document.h
+++ b/include/mupdf/pdf/document.h
@@ -19,9 +19,9 @@ enum
 
 struct pdf_lexbuf_s
 {
-	int size;
-	int base_size;
-	int len;
+	size_t size;
+	size_t base_size;
+	size_t len;
 	int64_t i;
 	float f;
 	char *scratch;

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=0c41b8bc36b73c4915266e262d4ca6aa11a46886

--
MuPDF library
Artifex Software, Inc.