Branch Coverage

deps/libgit2/src/util/allocators/stdalloc.c
Criterion Covered Total %
branch 11 22 50.0


line true false branch
24 0 16659 if (!ptr)
44 0 71526 if (!ptr)
59 0 35774 if (!ptr)
72 0 5343 if (GIT_ADD_SIZET_OVERFLOW(&alloclength, length, 1) ||
0 5343 if (GIT_ADD_SIZET_OVERFLOW(&alloclength, length, 1) ||
76 5343 0 if (length)
89 0 1348 if (GIT_ADD_SIZET_OVERFLOW(&alloclen, n, 1) ||
0 1348 if (GIT_ADD_SIZET_OVERFLOW(&alloclen, n, 1) ||
112 0 52958 if (!new_ptr)
122 0 22995 if (GIT_MULTIPLY_SIZET_OVERFLOW(&newsize, nelem, elsize))
0 22995 if (GIT_MULTIPLY_SIZET_OVERFLOW(&newsize, nelem, elsize))