Get Started
- CodeAnt AI
- Control Center
- Pull Request Review
- IDE
- Compliance
- Anti-Patterns
- Code Governance
- Infrastructure Security Database
- Application Security Database
- Apex
- Bash
- C
- Clojure
- Cpp
- Lang
- Correctness
- Memset-removal
- Sizeof-pointer-type
- Sizeof-this
- Security
- Libxml2
- 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
Memset-removal
Memset removal
This call to $MEMSET
may be optimized out by the compiler because the buffer is not accessed later in the function. This could be an issue if $BUF
contains sensitive data, such as passwords or cryptographic keys. Applications should use functions such as memset_s
or memset_explicit
to ensure that the sensitive data is cleared.
Likelihood: LOW
Confidence: MEDIUM
CWE:
- CWE-14: Compiler Removal of Code to Clear Buffers