AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerCbreadcrumb dividerSeveritybreadcrumb dividerSeverity CriticalFeedbackFeedback icon

Amazon Q

Detector Library

C detectors (34/34)

Logging of sensitive informationInsecure Use Of ChrootDeadlock And Lock InconsistencyUnsafe File ExtensionOS command injectionIncorrect Use Of FreeUse Of Uninitialized VariableInsecure Use strcat fnSQL injectionBitwise Operator On Signed OperandInsecure use gets fnRandom fd exhaustionRedundant Free UsageInsecure Use MemsetDivide By Zero.Return Stack AddressUnchecked Return ValueIncorrect Format SpecifierUnhandled Expression ResultPath traversalImproper Input ValidationOut Of Bounds ReadInteger OverflowInsecure use strtok functionImproper size of a memory bufferincomplete-cleanupNull pointer dereferenceInsecure Temporary File Or DirectoryInsecure Buffer AccessIncorrect Use Ato FnLoose File PermissionsExposure of Sensitive InformationOut-of-bounds WriteString Equality

Critical

Showing all detectors for the C language with critical severity.

Unsafe File Extension

Insufficiently restrictive file uploads can lead to inadvertently running malicious code.

Incorrect Use Of Free

Using memory after it has been freed can lead to unexpected behavior or exploitation.

Incorrect Use Ato Fn

Use strtol() instead of atoi() for string to number conversions to avoid undefined behavior from invalid inputs.