Commit 942f5fb
committed
Correctly handle null check of entry_data_list
I suspect at some point, we were passing in `entry_data_list` as a
`MMDB_entry_data_list_s *`, which is what we do in other extensions, but
that was refactored to `MMDB_entry_data_list_s **` for reasons I do not
recall, and the loop check was never updated appropriately.
This never caused an actual issue as we also have the size check.
However, it could potentially lead to a segfault on a corrupt or
otherwise invalid database.1 parent b372324 commit 942f5fb
2 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
| 754 | + | |
758 | 755 | | |
759 | 756 | | |
760 | 757 | | |
| |||
792 | 789 | | |
793 | 790 | | |
794 | 791 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
| 792 | + | |
799 | 793 | | |
800 | 794 | | |
801 | 795 | | |
| |||
0 commit comments