git/t/unit-tests
René Scharfe 30ff05094c t-prio-queue: check result array bounds
Avoid reading past the end of the "result" array, which could otherwise
happen if the prio-queue were to yield more items than were put into it
due to an implementation bug, or if the array has not enough entries due
to a test bug.

Also check at the end whether all "result" entries were consumed, which
would not be the case if the prio-queue forgot some entries or the test
definition contained too many.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-03-18 09:25:54 -07:00
..
.gitignore
t-basic.c
t-ctype.c t-ctype: avoid duplicating class names 2024-03-03 09:47:33 -08:00
t-mem-pool.c mem-pool: fix big allocations 2023-12-28 12:22:43 -08:00
t-prio-queue.c t-prio-queue: check result array bounds 2024-03-18 09:25:54 -07:00
t-strbuf.c
test-lib.c unit-tests: do show relative file paths on non-Windows, too 2024-02-12 08:44:22 -08:00
test-lib.h