diff options
Diffstat (limited to 'lib/base')
-rw-r--r-- | lib/base/plist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base/plist.cpp b/lib/base/plist.cpp index 3c3192d6..56873ce2 100644 --- a/lib/base/plist.cpp +++ b/lib/base/plist.cpp @@ -823,7 +823,8 @@ PListNameProp(PList_t plist, int pindex, const char *pname) /* Is it time to grow the hash table? */ i = PLSIZENDX(pt->pt_sizendx); - if (((size_t)pt->pt_sizendx < PLMAXSIZENDX) && + /* cannot allow pt->pt_sizendx == PLMAXSIZENDX */ + if (((size_t)(pt->pt_sizendx + 1) < PLMAXSIZENDX) && pt->pt_nsyms >= (i + i)) { PLSymbolTable_t *npt; |