Skip to content

Commit 9921744

Browse files
committed
fix: add coverage exclusion comments around early return in estack_free_to_marker
1 parent 5d02272 commit 9921744

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

easy_stack.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,9 @@ ESTACKDEF void estack_free_to_marker(EStack *ESTACK_RESTRICT stack, EStackMarker
13541354
uintptr_t decoded_magic = marker.magic ^ stack_addr;
13551355
if (ESTACK_UNLIKELY(decoded_magic != ESTACK_MAGIC)) {
13561356
ESTACK_CHECK_V(false, "Internal Error: 'estack_free_to_marker' detected invalid, corrupted or alien stack marker");
1357-
return;
1357+
// LCOV_EXCL_START
1358+
return;
1359+
// LCOV_EXCL_STOP
13581360
}
13591361

13601362
size_t decoded_index = marker.index ^ stack_addr;

0 commit comments

Comments
 (0)