AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerCbreadcrumb dividerNumeric Truncation ErrorFeedbackFeedback icon

Amazon Q

Detector Library

C detectors (38/38)

Logging of sensitive informationInsecure Use Of ChrootDeadlock And Lock InconsistencyUnsafe File ExtensionNumeric Truncation ErrorOS command injectionIncorrect Use Of FreeInsecure Use strcat fnSQL injectionBitwise Operator On Signed OperandInsecure use gets fnRandom fd exhaustionHardcoded CredentialsRedundant Free UsageIncorrect default PermissionsInsecure Use MemsetDivide By Zero.Return Stack AddressUnchecked Return ValueIncorrect Format SpecifierPath traversalImproper Input ValidationImproper Null TerminationOut Of Bounds ReadInteger OverflowInsecure use strtok functionImproper size of a memory bufferUnused Assigned Variablesincomplete-cleanupNull pointer dereferenceInsecure Temporary File Or DirectoryInsecure Buffer AccessIncorrect Use Ato FnLoose File PermissionsCross-site Scripting.Exposure of Sensitive InformationOut-of-bounds WriteString Equality

Numeric Truncation Error High

Casting a larger primitive to a smaller one truncates high-order bits, potentially causing unexpected values that differ from the original.

Detector ID
c/numeric-truncation-error@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-197
Tags
-