Branch Coverage

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


line true false branch
17 0 16388 if (!ptr) git_error_set_oom();
28 0 67332 if (!ptr) git_error_set_oom();
39 0 33034 if (!ptr) git_error_set_oom();
50 0 5137 if (GIT_ADD_SIZET_OVERFLOW(&alloclength, length, 1) ||
0 5137 if (GIT_ADD_SIZET_OVERFLOW(&alloclength, length, 1) ||
54 5137 0 if (length)
67 0 1360 if (GIT_ADD_SIZET_OVERFLOW(&alloclen, n, 1) ||
0 1360 if (GIT_ADD_SIZET_OVERFLOW(&alloclen, n, 1) ||
83 0 49075 if (!new_ptr) git_error_set_oom();
91 0 19402 if (GIT_MULTIPLY_SIZET_OVERFLOW(&newsize, nelem, elsize))
0 19402 if (GIT_MULTIPLY_SIZET_OVERFLOW(&newsize, nelem, elsize))