Skip to content

STR37-C: <ctype> functions implemented as macros not properly detected #246

Closed
@lcartey

Description

@lcartey

Affected rules

  • STR37-C

Description

The functions in the <ctype> header can be implemented either by macros or functions, however this query only detects cases where these functions are implemented by a function.

Example

isalpha(c); // This is a macro invocation on gcc and clang

Metadata

Metadata

Assignees

Labels

Difficulty-HighA false positive or false negative report which is expected to take 1+ week effort to addressImpact-Mediumfalse positive/false negativeAn issue related to observed false positives or false negatives.user-reportIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions