Commit Graph
1 Commits
Author SHA1 Message Date
hanjinpeng 596c9d2d03 json_tokener, arraylist: assorted cleanups
json_tokener.c assigned to an int64_t through a (uint64_t) cast.  The
guarded range makes it harmless, but the cast names the wrong type.

array_list_expand_internal() reallocated when max == arr->size even though
the array can already hold max entries at that point, since callers only
index up to max - 1.  Skip the realloc.
2026-09-13 23:08:18 -04:00