Branch Coverage

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


line true false branch
17 0 15911 if (!ptr) git_error_set_oom();
28 0 48662 if (!ptr) git_error_set_oom();
39 0 31612 if (!ptr) git_error_set_oom();
50 0 4452 if (GIT_ADD_SIZET_OVERFLOW(&alloclength, length, 1) ||
0 4452 if (GIT_ADD_SIZET_OVERFLOW(&alloclength, length, 1) ||
54 4452 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 46376 if (!new_ptr) git_error_set_oom();
91 0 18603 if (GIT_MULTIPLY_SIZET_OVERFLOW(&newsize, nelem, elsize))
0 18603 if (GIT_MULTIPLY_SIZET_OVERFLOW(&newsize, nelem, elsize))