Skip to content

RULE-8-4: Improve detection of compatible types #780

Open
@lcartey

Description

@lcartey

Affected rules

  • DCL40-C
  • RULE-8-3
  • RULE-8-4

Description

There are some cases of compatible types which are not currently detected by these queries:

  • Enumerations - these are compatible with a specified integer type.
  • Array types - are compatible if the element types are compatible (and the sizes match, where appropriate)
  • Pointer types - are compatible in the pointer target types are compatible.
  • Function types - if the return/argument types are compatible (with some exceptions for functions that don't declare arguments).

Example

Metadata

Metadata

Labels

Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addressImpact-LowStandard-CERT-Cfalse positive/false negativeAn issue related to observed false positives or false negatives.

Type

No type

Projects

Status

Triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions