CWE-395 Catching NullPointerException Instead of Checking for Null
Catching NullPointerException hides a bug and costs CPU. CWE-395 explained with a Java example and the plain fix: check before you dereference.
Deep dives, practical guides, and incident analyses from engineers who build Safeguard. No fluff, no vendor FUD — just what you need to ship secure software.
Catching NullPointerException hides a bug and costs CPU. CWE-395 explained with a Java example and the plain fix: check before you dereference.
Functions can return legitimate values your code never planned for. CWE-394 explained with four real CVEs on recv, read and null returns, plus the fix pattern.
A function that reports the wrong result makes callers act on a falsehood. CWE-393 explained with real CVEs, including the Apple goto fail bug, and fixes.
When code hits an error and returns success, callers trust a lie. CWE-392 explained through real CVEs, including an authentication bypass, with fixes.
CWE-391 is planned for deprecation in favor of CWE-252, CWE-248 and CWE-1069, but the lesson stands: ignored exceptions let attackers induce unnoticed behavior.
Code that notices an error and does nothing leaves the system in a state nobody planned for. CWE-390 explained with examples, a real CVE and the fixes.
CWE-39 covers input with a Windows drive letter that redirects file access somewhere unintended. Here is how it shows up and how to block it.
A path or name that resolves to a different object over time lets attackers redirect your access. CWE-386 explained, with its consequences and checks.
How long an operation takes can reveal what it did. CWE-385 explained with plain examples and the fixes MITRE recommends for removing time variance.
Weekly insights on software supply chain security, delivered to your inbox.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.