develooper Front page | perl.perl5.changes | Postings from August 2022

[Perl/perl5] a577a1: Prevent Coverity complaining about the mixed &and &&

From:
Tony Cook via perl5-changes
Date:
August 8, 2022 05:15
Subject:
[Perl/perl5] a577a1: Prevent Coverity complaining about the mixed &and &&
Message ID:
Perl/perl5/push/refs/heads/blead/0f35d6-c870f3@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a577a1f18e7562749b5949934cacb911a1551dbd
      https://github.com/Perl/perl5/commit/a577a1f18e7562749b5949934cacb911a1551dbd
  Author: Tony Cook <tony@develop-help.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M pp.h

  Log Message:
  -----------
  Prevent Coverity complaining about the mixed & and &&

Also add parenthesis around uses of the phlags macro parameter.

CID 354620, 353482.


  Commit: 90eef0af06f8dd17dd39a5ed9827264ff5b6b981
      https://github.com/Perl/perl5/commit/90eef0af06f8dd17dd39a5ed9827264ff5b6b981
  Author: Tony Cook <tony@develop-help.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M mathoms.c
    M mg.c
    M pp.c
    M sv.c

  Log Message:
  -----------
  explicitly ignore the result of sv_utf8_downgrade()

Coverity complains about this because most other calls are
checked.

CIDs 353483, 353003, 353000, 352998, 352995


  Commit: c870f3e4592ba2dc04fe5a29962b87d18004f952
      https://github.com/Perl/perl5/commit/c870f3e4592ba2dc04fe5a29962b87d18004f952
  Author: Tony Cook <tony@develop-help.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M regcomp.c
    M regcomp.h

  Log Message:
  -----------
  avoid dereferencing prog which may be NULL

CID 353002


Compare: https://github.com/Perl/perl5/compare/0f35d66c8dc2...c870f3e4592b



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About