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 1,501 to 1,550 of 3,817
  1. A raw this pointer is handed to real-time audio callbacks without a lock or callback clearing on teardown.

    Seen in 1 report
  2. A raw this pointer is passed as a callback handle across a C ABI boundary without joining the library's worker threads before destruction.

    Seen in 1 report
  3. A raw void pointer passed as callback context bypasses smart pointer protection.

    Seen in 1 report
  4. A raw web state pointer was captured by value in an asynchronous block instead of a weak pointer, and posted tasks were not cancelled on destruction.

    Seen in 1 report
  5. A raw WebState pointer is captured in an asynchronous callback without a weak reference or destruction observer.

    Seen in 1 report
  6. A raw window pointer is cached across an asynchronous D-Bus call without tracking the window's lifetime, so it dangles if the window is destroyed before the callback runs.

    Seen in 1 report
  7. A re-entrant callback: OnPageContentReceived synchronously invokes the result callback, which can reset and delete the LoginStateChecker, but OnExecutionResponseCallback continues to access members.

    Seen in 1 report
  8. A re-entrant synchronous event dispatch during a geometry query lets an observer destroy the host, and the caller keeps using its dangling pointer.

    Seen in 1 report
  9. A read callback's negative return value was added to a byte counter before being checked, so the error path computed an invalid offset and length.

    Seen in 1 report
  10. A read-only lookup mutates the limits array in place, destroying an inline dictionary while a raw pointer to it is still held.

    Seen in 1 report
  11. A read-until function copies into a fixed stack buffer without checking the destination size.

    Seen in 1 report
  12. A realloc frees memory still referenced by the callinfo structure, so the VM later dereferences a stale proc pointer.

    Seen in 1 report
  13. A reallocation branch passed an element count where a byte size was expected, omitting the multiplication by the element size.

    Seen in 1 report
  14. A reallocation leaves stale references in the garbage collector's store buffer.

    Seen in 1 report
  15. A reallocation size held in a signed 32-bit integer truncates on large sums, so a later copy writes past the smaller buffer.

    Seen in 1 report
  16. A record offset is allowed to point just past the buffer size.

    Seen in 1 report
  17. A recording event's buffer was freed twice while the recording was replayed on the translator thread.

    Seen in 1 report
  18. A recover-stream offset is packed into a 26-bit field guarded only by a debug assertion, so release builds silently truncate large offsets.

    Seen in 1 report
  19. A reentrant callback erased an element from the same flat set being iterated, invalidating the captured end iterator.

    Seen in 1 report
  20. A reference count was checked at the start of a function but not after it may have been incremented.

    Seen in 1 report
  21. A reference counting or cycle collection flaw frees a CSS rule while it is still referenced by the cycle collector.

    Seen in 1 report
  22. A reference cycle between a native object and a Java callback left a dangling pointer when the native object was freed.

    Seen in 1 report
  23. A reference into a heap hash map was held across a call that could re-enter and rehash the map.

    Seen in 1 report
  24. A reference into a map was held while an error path cleared that same map, leaving the reference dangling.

    Seen in 1 report
  25. A reference object was freed when it failed to act as an integer but the stale pointer stayed in the document dictionary.

    Seen in 1 report
  26. A reference to an element was held across a layout flush and script callbacks that could remove and free it, then read without re-checking.

    Seen in 1 report
  27. A reference to the cached path is passed into a call that can reset the context and free it.

    Seen in 1 report
  28. A reference-counted pointer was changed to a raw pointer during refactoring, so the object can be freed while still in use.

    Seen in 1 report
  29. A reference-counting mistake released a record twice during shutdown.

    Seen in 1 report
  30. A register comparison checks register size instead of aliasing, so a 32-bit register is treated as distinct from its 64-bit counterpart and the offset register is clobbered.

    Seen in 1 report
  31. A regression in nursery allocation conditions makes the rope flattening code allocate a buffer one byte too small.

    Seen in 1 report
  32. A relaxed store of a member pointer becomes visible before the release store that sets the start bit, and the header lookup does not handle an all-zero bitmap.

    Seen in 1 report
  33. A relayout was scheduled on the object without checking whether the preceding synchronous activation call had destroyed it.

    Seen in 1 report
  34. A release-only assertion allowed an unencrypted decryption config, subsample validation returned early and dispatch trusted the config's presence.

    Seen in 1 report
  35. A remote server response is copied into a fixed-size heap buffer with strcpy without a length check.

    Seen in 1 report
  36. A request removed itself from the pending list only after calling into the service, so a synchronous re-initialisation failure re-dispatched and freed it nestedly.

    Seen in 1 report
  37. A reset cleared the background task list without waiting for the tasks, so a later safety check saw an empty list and skipped synchronisation.

    Seen in 1 report
  38. A reset zeroes priority tree fields without unlinking the handle from its peers, leaving stale pointers.

    Seen in 1 report
  39. A residue pointer is not initialised before use when the residue ID from the file matches the initial value of zero.

    Seen in 1 report
  40. A retry callback runs synchronously instead of being posted, letting a consumer destroy the backend during iteration.

    Seen in 1 report
  41. A reversed loop comparison plus a read size never reduced by bytes already read.

    Seen in 1 report
  42. A rewrite treats any static one-element tensor as scalar-like and replaces a binary node with a unary reduce without rejecting constants whose rank exceeds the reduced tensor.

    Seen in 1 report
  43. A row size value from the file is used as an array index without a bounds check.

    Seen in 1 report
  44. A saved tab group's UI entry was not removed when the group was closed, so the stale entry accessed a deleted group.

    Seen in 1 report
  45. A scope exit lambda captures this by reference and dereferences it after running attacker-controlled script that can free the owning object.

    Seen in 1 report
  46. A scratch buffer is sized to the unaligned length but padding bytes are written after alignment.

    Seen in 1 report
  47. A scratch buffer is sized using one format's pixel size while the packing routine uses another.

    Seen in 1 report
  48. A scrollable area is detached without cancelling its finish callback, so the callback runs during garbage collection.

    Seen in 1 report
  49. A security patch used an inverted size comparison, validating the opposite size relationship from the one intended.

    Seen in 1 report
  50. A segment offset parsed as unsigned but later treated as signed bypassed sanity checks and caused a buffer underflow.

    Seen in 1 report