Skip to content

Conversation

@mauke
Copy link
Contributor

@mauke mauke commented Sep 22, 2025

Coverity (CID 584855) complains that _invlist_search can return negative values. There is a comment that asserts this cannot happen here. Convert that comment to a C-level assert(). I don't know if that will silence Coverity, but it can't hurt to verify the invariant at least in debugging builds.

(Also, convert RT ticket ID to Github issue number and do the PERL_ARGS_ASSERT_... thing first.)


  • This set of changes does not require a perldelta entry.

Coverity (CID 584855) complains that _invlist_search can return negative
values. There is a comment that asserts this cannot happen here. Convert
that comment to a C-level assert(). I don't know if that will silence
Coverity, but it can't hurt to verify the invariant at least in
debugging builds.

(Also, convert RT ticket ID to Github issue number and do the
PERL_ARGS_ASSERT_... thing first.)
@mauke mauke merged commit 1b4a1a9 into Perl:blead Sep 23, 2025
34 checks passed
@mauke mauke deleted the invlist-comment-to-assert branch September 23, 2025 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants