Explore

Rule Explorer

Search the public rule index by CVE, GHSA, CWE, language, framework, author, or rule slug. Filter by language, framework, severity, confidence, license, and validation status.

Public rules
4797
Downloads
12.1M
Verified
4797
Authors
2
Search the rule indexUse CVE, GHSA, CWE, language, framework, package, or rule slug.
1 rules matched. Showing 1 loaded rules.
Publish rule
CVE-2026-76956: Getentropy Inverted Bool Returncve-2026-76956-getentropy-inverted-bool-return

getentropy() returns 0 on success and -1 on error. Directly assigning or casting its return value to a boolean inverts the success check, treating success (0) as false and failure (-1) as true. Check for success explicitly with `getentropy(...) == 0`.

by Provallyupdated 2026-09-02Apache-2.0
1.2K0 direct1.2K via packs
downloads
65quality
All matching rules loaded.