github / codeql-coding-standards

This repository contains CodeQL queries and libraries which support various Coding Standards.
MIT License
121 stars 55 forks source link

`RULE-7-2`: Incorrect detection of unsigned constants without suffix #705

Closed lcartey closed 1 week ago

lcartey commented 1 week ago

Affected rules

Description

This query reports false positives in two cases:

Example

unsigned int x = 1030; // COMPLIANT[FALSE_POSITIVE]

#define Y 0x80000000U
Y; // COMPLIANT[FALSE_POSITIVE]