Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 0fff722e99f30a5b4c8e2c5467539d90ec15fcab https://github.com/Perl/perl5/commit/0fff722e99f30a5b4c8e2c5467539d90ec15fcab Author: David Mitchell <da...@iabyn.com> Date: 2024-04-02 (Tue, 02 Apr 2024)
Changed paths: M op.c Log Message: ----------- Perl_rcpv_new(): add assert(pv) When this function is called with the RCPVf_USE_STRLEN flag, it gets the string length by calling strlen(pv). Coverity (CID 376192) points out that pv could be NULL. This commit adds an assert(pv), so that the code will bail out on the line before the strlen() in this case, which is probably enough to silence Coverity. Perhaps we aught to have a proper croak() there, but this is a utility function mainly used in limited places in the core, where the caller likely knows that they're doing. To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications