AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerCbreadcrumb dividerCategoriesbreadcrumb dividerCode QualityFeedbackFeedback 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

Code Quality detectors

String Equality

Use strcmp() or strncmp() instead of == and != for character content comparison.