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 2,951 to 3,000 of 3,817
  1. The FFT frame sizing logic assumed a power-of-two render quantum, so a non-power-of-two hint combined with oversampling overflowed the buffer.

    Seen in 1 report
  2. The fiber switch copies transfer arguments into a fixed-size stack buffer without validating the argument count.

    Seen in 1 report
  3. The field number is checked for non-zero but not checked against the table's field count before indexing an array.

    Seen in 1 report
  4. The fields property was not type-checked after page deletion reset it to a different object.

    Seen in 1 report
  5. The file list builder mishandles sizes from the archive.

    Seen in 1 report
  6. The file object context pointer is not cleared when a foreign process closes the last handle, causing an extra release and premature free.

    Seen in 1 report
  7. The fill code synchronously dispatches DOM events, letting page script destroy the agent object before the method finishes using its members.

    Seen in 1 report
  8. The filter assumed source and destination images shared the same RGBA format before iterating and copying pixels.

    Seen in 1 report
  9. The firmware does not validate the length of an information element in action frames.

    Seen in 1 report
  10. The fixed-string optimisation does not account for variable-width UTF-8 characters when calculating the offset for the comparison.

    Seen in 1 report
  11. The fling stop call is made without a liveness check afterwards, unlike sibling entry points that guard re-entrant destruction.

    Seen in 1 report
  12. The focus manager calls into layout, which can run script and free the anonymous content node, then continues to use that node.

    Seen in 1 report
  13. The font character map shared by a FontFace is reference-counted without synchronisation so two threads can race on its release.

    Seen in 1 report
  14. The font driver mishandles objects in memory when processing crafted input.

    Seen in 1 report
  15. The font interpreter does not validate the size of data pushed by an instruction inside a function definition.

    Seen in 1 report
  16. The font interpreter lacked a bounds check on the argument count for the callothersubr operation.

    Seen in 1 report
  17. The font parser did not properly validate user-supplied data before writing to a buffer.

    Seen in 1 report
  18. The font table size read from the document is not validated before being passed to the allocator.

    Seen in 1 report
  19. The font-handling code frees an object but does not verify it still exists before further operations.

    Seen in 1 report
  20. The force-feedback struct member is not initialised in the constructor and the vibration check tests the device reference instead of the effect reference.

    Seen in 1 report
  21. The forced-close path clears the connection list but the close callback returns early while the force-closing flag is set, so freed connections are never removed.

    Seen in 1 report
  22. The format description is rebuilt only on keyframes and the configuration-change check omits coding tree block size fields.

    Seen in 1 report
  23. The format fallback changes the required allocation size after import and the only guard against the mismatch is an assertion removed in release builds.

    Seen in 1 report
  24. The format ioctl freed the queue's format array on an invalid format but left the pointer and state set, so cleanup freed it again.

    Seen in 1 report
  25. The format parser has no case for a documented conversion, so it returns early without reserving an argument slot.

    Seen in 1 report
  26. The formatted output helper passed its format argument straight to a printf-style function without checking for format specifiers.

    Seen in 1 report
  27. The formatting loop copies tag expansions into a fixed stack buffer without checking the write offset.

    Seen in 1 report
  28. The formatting loop passes the full buffer size to each write call instead of the remaining space, so cumulative writes overflow the buffer.

    Seen in 1 report
  29. The fragment data array is resized without re-validating existing constant indices.

    Seen in 1 report
  30. The fragmentation loop uses signed integer arithmetic without an overflow check and the OBU size is not bounded.

    Seen in 1 report
  31. The frame allocator and the decoder compute plane heights with different rounding, so an odd slice height writes past the allocation.

    Seen in 1 report
  32. The frame buffer pool freed and reallocated alpha data without checking whether an already emitted video frame still held a span into that buffer.

    Seen in 1 report
  33. The frame parser does not validate or synchronise on a start-of-frame marker, so arbitrary input is misread as commands.

    Seen in 1 report
  34. The frame pool freed non-matching pooled allocations without synchronising with AV1 row-worker threads that still held raw pointers.

    Seen in 1 report
  35. The frame-push path inside the begin-frame handler could release the canvas resource dispatcher while the same handler continued to use it.

    Seen in 1 report
  36. The framework used a user-supplied index to write into an array without validating its size.

    Seen in 1 report
  37. The fruit module did not validate the size of AppleDouble metadata entries before using them in memory operations.

    Seen in 1 report
  38. The fullscreen entry path lacked the weak pointer guards used on exit and called an API that can run a nested message loop.

    Seen in 1 report
  39. The function allocates a buffer based on a value from the file but then writes more sectors into it than the buffer can hold.

    Seen in 1 report
  40. The function caches a raw pointer to a child view and then calls a function that can synchronously process messages that destroy that view.

    Seen in 1 report
  41. The function calls a delegate callback that can synchronously destroy the window object and then continues to use this without checking whether it is still alive.

    Seen in 1 report
  42. The function calls into X11 code that can synchronously destroy the window host and has no liveness check before touching its own members.

    Seen in 1 report
  43. The function copies a string from the file into a fixed-size stack buffer without checking its length.

    Seen in 1 report
  44. The function copies user-supplied data into a heap buffer without checking its length.

    Seen in 1 report
  45. The function did not check for a zero-length client buffer and read the first byte unconditionally, returning a pointer past the start with an undefined length.

    Seen in 1 report
  46. The function did not check the caller-supplied length was small enough for the computed encoded size to fit in an int, so the size calculation overflowed.

    Seen in 1 report
  47. The function firing accessibility events returns void and ignores the destruction status from its tracking helper, so callers use a freed object.

    Seen in 1 report
  48. The function lacks a weak pointer check after a loop that can synchronously destroy the WebContents, so it returns a valid blocker instead of an empty result.

    Seen in 1 report
  49. The function passed the block size as the maximum output length instead of the actual remaining buffer size, and later used an underflowed unsigned value as a length.

    Seen in 1 report
  50. The function uses a raw window pointer after a synchronous call that can run a nested message loop and destroy that window, and the pointer is a stack parameter so smart pointers do not protect it.

    Seen in 1 report