Skip to content

In-depth lesson · Memory corruption

Root causes

Every point the Memory corruption reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 901 to 950 of 3,817
  1. A 64-bit size calculation is stored in a 32-bit signed integer, truncating it and causing an undersized allocation before a loop writes the full channel count.

    Seen in 1 report
  2. A 64-bit size field was truncated to 32 bits when mapped by a 32-bit process, so bounds checks against the full size were wrong.

    Seen in 1 report
  3. A 64-bit size is passed to an allocation function that takes a 32-bit size, so large lengths are silently truncated before allocation.

    Seen in 1 report
  4. A 64-bit size is truncated to 32 bits for buffer allocation but the full size is used for the write.

    Seen in 1 report
  5. A 64-bit to 32-bit truncation recorded large vertex buffer sizes as zero, disabling the robustness clamp.

    Seen in 1 report
  6. A background media thread notifies an event source after the owning decoder state machine has been destroyed.

    Seen in 1 report
  7. A bad pointer or corrupted value reaches the class-variable hash insertion path, so the hash table pointer is invalid.

    Seen in 1 report
  8. A bare Objective-C pointer to the download task is stored without memory protection, and the pause method returns early when already stopped, leaving a dangling pointer.

    Seen in 1 report
  9. A bare pointer to a dialog delegate is held across a modal call that can run a nested loop and destroy the widget.

    Seen in 1 report
  10. A bare pointer to the gesture event helper was used across loop iterations without checking whether a synchronous handler had destroyed it.

    Seen in 1 report
  11. A bare reference to a popup row view is held across a call that can synchronously pump the Windows message loop.

    Seen in 1 report
  12. A bare window pointer is held on the stack and reused after a synchronous dispatch can destroy the window, and a completion closure captures a raw previous-focused-window pointer.

    Seen in 1 report
  13. A binary value is trusted to be valid and only checked with a debug assertion, so a short blob reads out of bounds.

    Seen in 1 report
  14. A BIND_ACK packet is processed in an unexpected state, so the packet buffer is freed during event handling and then freed again.

    Seen in 1 report
  15. A bit depth of zero from the file produces a tiny allocation that the processing loop then overruns.

    Seen in 1 report
  16. A bitwise AND is used instead of OR when setting the low bit of a forwarding pointer, corrupting the out-of-line header word.

    Seen in 1 report
  17. A bitwise AND was used where OR was intended when tagging a forwarding pointer, so the tag bit was always cleared and the out-of-line data block was misclassified as inline.

    Seen in 1 report
  18. A blending channel count from the file controlled a copy loop and a signed decrement counter was converted to unsigned.

    Seen in 1 report
  19. A block count field from a file record is used as a loop counter without validation.

    Seen in 1 report
  20. A block number read from disk is used as an index into a heap bitmap without a bounds check.

    Seen in 1 report
  21. A borrowed pointer into a temporary mapping is handed to asynchronous code that outlives the mapping.

    Seen in 1 report
  22. A boundary check is off by one when handling file-system data.

    Seen in 1 report
  23. A bounded concatenation copies an attacker-controlled path into a small stack buffer without checking the path length.

    Seen in 1 report
  24. A bounded string copy into a fixed-size global buffer without checking the length.

    Seen in 1 report
  25. A bounds check adds an untrusted size to a pointer without guarding against integer overflow.

    Seen in 1 report
  26. A bounds check in the VM's value move routine is missing or wrong, so a stack operation writes past the allocated value array.

    Seen in 1 report
  27. A bounds check omits the lower bound, allowing a negative index.

    Seen in 1 report
  28. A bounds check on the mapped buffer size is missing for VLAN-tagged frames.

    Seen in 1 report
  29. A bounds check uses pointer addition that can overflow, so a large length value wraps around and passes the check.

    Seen in 1 report
  30. A bounds check uses the wrong comparison so a value equal to the buffer size is accepted.

    Seen in 1 report
  31. A bounds check was added for answer records but not for PTR records in the additional section.

    Seen in 1 report
  32. A bounds error in the floating point string parser wrote beyond the allocated heap buffer.

    Seen in 1 report
  33. A bounds-checking flaw in the USB handling code allowed an out-of-bounds read.

    Seen in 1 report
  34. A buffer attribute function collapsed multiple plane descriptors onto the first descriptor but copied per-plane offsets without checking them against its size.

    Seen in 1 report
  35. A buffer backing a draw call is freed before the driver finishes copying from it, likely a race.

    Seen in 1 report
  36. A buffer created during context loss kept a zero GL buffer ID and the pixel buffer paths never checked the object was valid.

    Seen in 1 report
  37. A buffer is allocated from an attacker-controlled length but copied into using sizes derived from unsynchronisation pattern indices without checking the copy fits.

    Seen in 1 report
  38. A buffer is allocated using one record's size but filled using a different record's size.

    Seen in 1 report
  39. A buffer is allocated with one size variable but filled using a different length variable.

    Seen in 1 report
  40. A buffer is swapped for a smaller one mid-read but the stored length is not reset.

    Seen in 1 report
  41. A buffer or string was used before being fully initialised, so strlen read uninitialised bytes.

    Seen in 1 report
  42. A buffer overflow in environment variable parsing corrupts the link map structure.

    Seen in 1 report
  43. A buffer overflow in parsing data received from the Mobile Adapter, specifically email or HTTP responses, allowed control flow hijacking.

    Seen in 1 report
  44. A buffer overflow in the accessory updater component.

    Seen in 1 report
  45. A buffer pointer was freed but not reset, so later calls reused and freed it again.

    Seen in 1 report
  46. A buffer size calculated from a file value without a null check leads to a one-byte allocation.

    Seen in 1 report
  47. A buffer size calculation error in a client processing server responses is a distinct root cause.

    Seen in 1 report
  48. A buffer size calculation overflows because user-supplied data is not validated before allocation.

    Seen in 1 report
  49. A buffer size check used less-than where less-than-or-equal was needed for the null terminator.

    Seen in 1 report
  50. A buffer size is calculated from an attacker-controlled length field without checking for integer overflow.

    Seen in 1 report