Skip to content

A0-4-4: More domain cases #193

Closed
@lcartey

Description

@lcartey

Affected rules

  • A0-4-4

Description

There are a number of math function domain errors we didn't previously capture, because they result in unspecified or undefined behaviour:

  • abs on "the most negative number" is undefined behaviour.
  • The second parameter of fmod should not be zero.
  • l?lrint[fl]? and l?lround[fl]? where the rounded input value is outside the range of the return type.
  • frexp on NaN or infinity

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-Lowfalse positive/false negativeAn issue related to observed false positives or false negatives.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions