diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/bplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bplist.c b/src/bplist.c index c3fc071..12963c4 100644 --- a/src/bplist.c +++ b/src/bplist.c | |||
| @@ -837,7 +837,7 @@ PLIST_API void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * | |||
| 837 | return; | 837 | return; |
| 838 | } | 838 | } |
| 839 | 839 | ||
| 840 | if ((offset_table + offset_table_size < offset_table) || (offset_table + offset_table_size > end_data)) { | 840 | if (offset_table_size > (uint64_t)(end_data - offset_table)) { |
| 841 | PLIST_BIN_ERR("offset table points outside of valid range\n"); | 841 | PLIST_BIN_ERR("offset table points outside of valid range\n"); |
| 842 | return; | 842 | return; |
| 843 | } | 843 | } |
