... | ... |
@@ -1,5 +1,5 @@ |
1 | 1 |
/* |
2 |
- * Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved. |
|
2 |
+ * Copyright (C) 2014, 2018 Cisco and/or its affiliates. All rights reserved. |
|
3 | 3 |
* |
4 | 4 |
* Author: Shawn Webb |
5 | 5 |
* |
... | ... |
@@ -960,7 +960,7 @@ struct pdf_array *pdf_parse_array(struct pdf_struct *pdf, struct pdf_obj *obj, s |
960 | 960 |
} |
961 | 961 |
|
962 | 962 |
/* More sanity checking */ |
963 |
- if ((size_t)(end - objstart) == objsz) |
|
963 |
+ if ((size_t)(end - objstart) >= objsz) |
|
964 | 964 |
return NULL; |
965 | 965 |
|
966 | 966 |
if (*end != ']') |