Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
langperl
my ($a, $b) = # initialize
my $answer;
if (! eval { $answer = $a / $b }) {
  carp($@) if $@;
  $answer = 0;
}
print "The quotient is $answer\n";

Exceptions

EXP31-PL-EX0: Exceptions that occur during the freeing of a resource may be suppressed in those cases where failure to free the resource cannot affect future program behavior. Examples of freeing resources include closing files or network sockets. When closed, normally or abnormally, the exception cannot influence future program behavior through any avenue other than resource exhaustion. When resource exhaustion is adequately handled, it is sufficient to sanitize and log the exception for future improvement; additional error handling is unnecessary in this case.

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

EXP31-PL

Low

Probable

Medium

P4

L3

Related Guidelines

...

 


 

...

Image Modified Image Modified Image Modified