Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 5f87ffb

Browse files
author
Reini Urban
committed
Scalar-List-Utils: fix useless assert
check for len overflow nevertheless, restrict the new name to INT_MAX, the rest denotes an negative overflow
1 parent a50a816 commit 5f87ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpan/Scalar-List-Utils/ListUtil.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ PPCODE:
14581458
s = SvPVX(name);
14591459
}
14601460
#if defined(DEBUGGING) && defined(I_ASSERT)
1461-
assert(len >= 0);
1461+
assert(len < PERL_INT_MAX);
14621462
#endif
14631463

14641464
/* under debugger, provide information about sub location */

0 commit comments

Comments
 (0)