summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/sa85d.c')
-rw-r--r--base/sa85d.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/sa85d.c b/base/sa85d.c
index f9fa57fe..4e51e89a 100644
--- a/base/sa85d.c
+++ b/base/sa85d.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2020 Artifex Software, Inc.
+/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -135,9 +135,9 @@ s_A85D_process(stream_state * st, stream_cursor_read * pr,
* So we allow CR/LF between them. */
/* PDF further relaxes the requirements and accepts bare '~'.
*/
- while ((p[i] == 13 || p[i] == 10) && (p+i <= rlimit))
+ while ((p + i <= rlimit) && (p[i] == 13 || p[i] == 10))
i++;
- if (p[i] != '>') {
+ if (p + i <= rlimit && p[i] != '>') {
if (ss->pdf_rules) {
if (p[i] == 13 || p[i] == 10) {
if (!last)
@@ -146,7 +146,7 @@ s_A85D_process(stream_state * st, stream_cursor_read * pr,
p--;
}
} else {
- if (p+i == rlimit) {
+ if (p + i == rlimit) {
if (last)
status = ERRC;
else