diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-08-17 13:41:02 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-08-17 13:42:39 -0700 |
commit | 78085e6b683b4e5a13b38508597a0c93ac2ed9ea (patch) | |
tree | 9958fceca78b6a5731c6c42f47b7a62e018a215a /src | |
parent | 3e0e36e4a9fee32105aa7c5cb6e089c495b92b10 (diff) |
stubs/atom.c: check for ResizeHashTable failure
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/stubs/atom.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stubs/atom.c b/src/stubs/atom.c index 804a4de..afc186c 100644 --- a/src/stubs/atom.c +++ b/src/stubs/atom.c @@ -189,7 +189,9 @@ __libxfont_internal__MakeAtom(const char *string, unsigned len, int makeit) a->atom = ++lastAtom; a->hash = hash; if (hashUsed >= hashSize / 2) { - ResizeHashTable(); + if ((ResizeHashTable() == FALSE) && + ((hashTable == NULL) || (hashUsed == hashSize))) + return None; h = hash & hashMask; if (hashTable[h]) { r = (hash % rehash) | 1; |