]> granicus.if.org Git - json-c/commit
Issue #332: fix a long-standing bug in array_list_put_idx() where it would attempt...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 9 Jul 2017 02:04:35 +0000 (19:04 -0700)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 9 Jul 2017 02:04:35 +0000 (19:04 -0700)
commitfd9b3b22603c6fe8410d6809a206ab1534b25dc4
tree0f23b9f961fa5ffd08bb1f73f1655fcb742c4d8b
parent7fd74fc7a3e69fb92f51ff94d4e1e20c72ba3682
Issue #332: fix a long-standing bug in array_list_put_idx() where it would attempt to free previously free'd entries due to not checking the current array length.
Add a test that triggers the problem to ensure it stays fixed.
arraylist.c
tests/test1.c