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.
-
A raw this pointer is handed to real-time audio callbacks without a lock or callback clearing on teardown.
Seen in 1 report
-
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
-
A raw void pointer passed as callback context bypasses smart pointer protection.
Seen in 1 report
-
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
-
A raw WebState pointer is captured in an asynchronous callback without a weak reference or destruction observer.
Seen in 1 report
-
$11,000 High
-
-
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
-
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
-
$2,000 Medium
-
-
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
-
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.
-
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
-
A read-until function copies into a fixed stack buffer without checking the destination size.
Seen in 1 report
-
A realloc frees memory still referenced by the callinfo structure, so the VM later dereferences a stale proc pointer.
Seen in 1 report
-
A reallocation branch passed an element count where a byte size was expected, omitting the multiplication by the element size.
-
A reallocation leaves stale references in the garbage collector's store buffer.
-
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
-
A record offset is allowed to point just past the buffer size.
Seen in 1 report
-
A recording event's buffer was freed twice while the recording was replayed on the translator thread.
-
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
-
A reentrant callback erased an element from the same flat set being iterated, invalidating the captured end iterator.
Seen in 1 report
-
$3,000 High
-
-
A reference count was checked at the start of a function but not after it may have been incremented.
Seen in 1 report
-
A reference counting or cycle collection flaw frees a CSS rule while it is still referenced by the cycle collector.
Seen in 1 report
-
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
-
A reference into a heap hash map was held across a call that could re-enter and rehash the map.
Seen in 1 report
-
A reference into a map was held while an error path cleared that same map, leaving the reference dangling.
-
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
-
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
-
A reference to the cached path is passed into a call that can reset the context and free it.
Seen in 1 report
-
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
-
A reference-counting mistake released a record twice during shutdown.
Seen in 1 report
-
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
-
A regression in nursery allocation conditions makes the rope flattening code allocate a buffer one byte too small.
-
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
-
A relayout was scheduled on the object without checking whether the preceding synchronous activation call had destroyed it.
Seen in 1 report
-
A release-only assertion allowed an unencrypted decryption config, subsample validation returned early and dispatch trusted the config's presence.
Seen in 1 report
-
A remote server response is copied into a fixed-size heap buffer with strcpy without a length check.
Seen in 1 report
-
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
-
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
-
A reset zeroes priority tree fields without unlinking the handle from its peers, leaving stale pointers.
Seen in 1 report
-
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
-
A retry callback runs synchronously instead of being posted, letting a consumer destroy the backend during iteration.
Seen in 1 report
-
A reversed loop comparison plus a read size never reduced by bytes already read.
Seen in 1 report
-
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
-
A row size value from the file is used as an array index without a bounds check.
-
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
-
A scope exit lambda captures this by reference and dereferences it after running attacker-controlled script that can free the owning object.
-
A scratch buffer is sized to the unaligned length but padding bytes are written after alignment.
-
A scratch buffer is sized using one format's pixel size while the packing routine uses another.
Seen in 1 report
-
A scrollable area is detached without cancelling its finish callback, so the callback runs during garbage collection.
Seen in 1 report
-
A security patch used an inverted size comparison, validating the opposite size relationship from the one intended.
Seen in 1 report
-
A segment offset parsed as unsigned but later treated as signed bypassed sanity checks and caused a buffer underflow.
Seen in 1 report