CWE-135 Incorrect Calculation of Multi-Byte String Length
Counting characters when you need bytes, or the reverse, sizes buffers wrong. See how wide and multi-byte strings cause overflows and how to avoid it.
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.
Counting characters when you need bytes, or the reverse, sizes buffers wrong. See how wide and multi-byte strings cause overflows and how to avoid it.
Processors can leave traces of transient execution in internal buffers. Attackers read them through side channels. What the weakness is and what mitigates it.
Closing a file descriptor or freeing memory twice can corrupt data or close the wrong resource. How double release bugs arise and how to design them out.
Passing user input as a format string lets attackers read and write memory. Learn the printf and syslog patterns that cause CWE-134 and the one-line fix.
Floating point rounding is not just a math nuisance. In prices, bounds and random numbers it becomes a security bug, and sometimes a memory safety one.
Malicious software can drive a device into modes that overheat it and cause lasting damage. Why thermal limits are a security control, and how to enforce them.
When user input is processed as a template instead of passed into one, attackers can run expressions and often code. How SSTI happens and how to stop it.
Shifting by a negative amount or by the width of the type is undefined in many languages. See how it crashes programs and how to guard against it.
Redundant hardware blocks only help if nobody can poison them. How unauthorized error injection puts a system into a degraded mode, and the fix.
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.