github / codeql-coding-standards

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

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

Closed lcartey closed 2 months ago

lcartey commented 2 months 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]