CodeAnt AI home pagelight logodark logo
  • Dashboard
  • Dashboard
  • Documentation
  • Demo Call with CEO
  • Blog
  • Slack
  • Get Started
    • CodeAnt AI
    • Setup
    • Control Center
    • Pull Request Review
    • IDE
    • Compliance
    • Anti-Patterns
    • Code Governance
    • Infrastructure Security Database
    • Application Security Database
      • Apex
      • Bash
      • C
        • Lang
          • Correctness
          • Security
      • Clojure
      • Cpp
      • Csharp
      • Dockerfile
      • Elixir
      • Fingerprints
      • Generic
      • Go
      • Html
      • Java
      • Javascript
      • Json
      • Kotlin
      • Ocaml
      • Php
      • Problem-based-packs
      • Python
      • Ruby
      • Rust
      • Scala
      • Solidity
      • Swift
      • Terraform
      • Typescript
      • Yaml
    Lang

    Correctness

    The second goto statement will always be executed.

    Avoid the ‘ato*()’ family of functions. Their use can lead to undefined behavior, integer overflows, and lack of appropriate error handling. Instead prefer the ‘strtol*()’ family of functions.

    Using == on char* performs pointer comparison, use strcmp instead

    Avoid ‘sscanf()’ for number conversions. Its use can lead to undefined behavior, slow processing, and integer overflows. Instead prefer the ‘strto*()’ family of functions.

    SecuritySecurity
    twitterlinkedin
    Powered by Mintlify