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,451 to 1,500 of 3,817
  1. A purely time-based delay was used to keep a helper object alive after stream closure instead of synchronising its lifetime with the real callback completion.

    Seen in 1 report
  2. A pushed-stream handle was created without the parent's share pointer, so teardown looked up the wrong pool and freed a connection still linked in the shared pool.

    Seen in 1 report
  3. A query object was deleted while a fence sync was still pending, leading the vendor driver to free the same chunk twice.

    Seen in 1 report
  4. A queued setFocus call runs after the handler that freed page objects, so it touches freed memory.

    Seen in 1 report
  5. A race between certificate generation on a worker thread pool and setting the certificate leaves a stale pointer.

    Seen in 1 report
  6. A race between cursor rendering and encoding threads combined with a type confusion when TrueColor is disabled wrote a high value into a PNG info struct later used as a length.

    Seen in 1 report
  7. A race between the audio callback driver being released on one thread and the media graph thread still reading it.

    Seen in 1 report
  8. A race between the media cache thread reading a buffered stream and the main thread freeing it when the audio element is removed.

    Seen in 1 report
  9. A race condition freed memory while it was still in use.

    Seen in 1 report
  10. A race condition left the HTTP/2 library holding a reference to a stream after it was destroyed.

    Seen in 1 report
  11. A race in the shared video frame pool releases a frame twice when multiple senders scale frames concurrently.

    Seen in 1 report
  12. A race let the worker thread free the worker object while a queued main-thread runnable still held a raw pointer to it.

    Seen in 1 report
  13. A race or memory corruption in JIT frame handling during garbage collection.

    Seen in 1 report
  14. A race or reference-counting mistake leaves a freed page reachable and mapped.

    Seen in 1 report
  15. A range-based loop caches iterators over the assigned nodes vector, but a re-entrant call during detachment clears the vector and leaves the iterators dangling.

    Seen in 1 report
  16. A range-based loop iterated a live list of form elements that DOM mutations could clear synchronously, leaving dangling pointers.

    Seen in 1 report
  17. A range-based loop over a mutable vector spun a nested run loop that mutated the vector and invalidated the cached end iterator.

    Seen in 1 report
  18. A range-based loop over a vector calls a function that can synchronously mutate the same vector, invalidating the loop iterators.

    Seen in 1 report
  19. A range-for loop iterated a vector that could be modified during iteration, invalidating iterators when reallocation occurred.

    Seen in 1 report
  20. A raster size stored through a signed 16-bit pointer was sign-extended, inflating the copy loop count.

    Seen in 1 report
  21. A raw actor pointer is held across a synchronous snapshot call that can flush WebGL, lose the context and destroy the actor.

    Seen in 1 report
  22. A raw animator pointer is held across a call that can run JavaScript, which can delete the animator and change the animated property type.

    Seen in 1 report
  23. A raw deletion task bypasses the GPU scheduler and does not make the correct GL context current before deleting textures.

    Seen in 1 report
  24. A raw demuxer stream pointer is read and nulled on different threads with no lock.

    Seen in 1 report
  25. A raw frame pointer is kept across a call that can spin a nested message loop, so the frame can be destroyed and the pointer dangles.

    Seen in 1 report
  26. A raw inspector pointer was held across a JavaScript callback that could destroy the inspected context, with no re-validation.

    Seen in 1 report
  27. A raw interior pointer is passed to a function that can trigger garbage collection, and with conservative stack scanning disabled the pointer is not updated when the object moves.

    Seen in 1 report
  28. A raw module script pointer was stored in a function's reserved slot without incrementing its reference count.

    Seen in 1 report
  29. A raw pointer captured in a lambda is used after the object is deleted during a nested event loop.

    Seen in 1 report
  30. A raw pointer into a mutable attribute vector is kept live across a synchronous JavaScript callout that can reallocate and free that vector.

    Seen in 1 report
  31. A raw pointer is assigned without incrementing its reference count, so an error path frees the same memory twice.

    Seen in 1 report
  32. A raw pointer is dereferenced after the object is freed when toggling recording and web accessibility.

    Seen in 1 report
  33. A raw pointer map keeps duplicate entries and cleanup removes only the first.

    Seen in 1 report
  34. A raw pointer to a GTK widget is bound into an asynchronous Wayland callback without keeping the widget alive.

    Seen in 1 report
  35. A raw pointer to a render frame is accessed after the frame was deleted.

    Seen in 1 report
  36. A raw pointer to a reporter owned by the throttle provider is held, and a race between redirect handling and provider destruction leaves it dangling.

    Seen in 1 report
  37. A raw pointer to a table caption was used after RemoveChild triggered a synchronous removal event.

    Seen in 1 report
  38. A raw pointer to a view was cached and its protecting smart pointer cleared before a synchronous event dispatch that could destroy the view.

    Seen in 1 report
  39. A raw pointer to an autocomplete match is bound into asynchronous thread pool callbacks, so the object can be destroyed before the callback returns.

    Seen in 1 report
  40. A raw pointer to an extension object is obtained without holding a reference, so it can be freed on another thread before use.

    Seen in 1 report
  41. A raw pointer to an extension object is stored without a reference-counted smart pointer, so a synchronous reload frees it while still in use.

    Seen in 1 report
  42. A raw pointer to an object owned elsewhere outlived the owner when a compromised renderer ended its lifetime early.

    Seen in 1 report
  43. A raw pointer to popover data was cached before dispatching a synchronous event and reused afterwards without being re-fetched.

    Seen in 1 report
  44. A raw pointer to the new view is held across a synchronous event dispatch that can delete it, with no validity re-check.

    Seen in 1 report
  45. A raw pointer to the resuming throttle is used after the navigation request and its owned throttle have been synchronously destroyed.

    Seen in 1 report
  46. A raw pointer was appended to an intrusive list before inserting the owning pointer into a hash map, so a failed duplicate insertion freed the object but left the raw pointer.

    Seen in 1 report
  47. A raw pointer was not updated after a stats report was deleted and replaced, so the next iteration dereferenced freed memory.

    Seen in 1 report
  48. A raw static cast converted a controller without verifying its actual type.

    Seen in 1 report
  49. A raw submenu view pointer was held across a nested message loop without a weak reference.

    Seen in 1 report
  50. A raw tab handle pointer is captured before a synchronous discard call and dereferenced afterwards without accounting for re-entrant observers.

    Seen in 1 report