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.
-
The incremental style update filter omits the revert-rule keyword, and the colour resolver casts the unrecognised value to a light-dark pair without a type check.
Seen in 1 report
-
The index buffer offset is not reset when a draw reuses it after a render pass change.
Seen in 1 report
-
The index check only rejected values greater than or equal to the string length and did not reject negative indices.
Seen in 1 report
-
The index into the high cost table was computed from an attacker-influenced coefficient without a bounds check.
Seen in 1 report
-
The index is incremented after the bounds check, allowing a read one byte past the buffer.
Seen in 1 report
-
The index range count is computed as end minus start plus one in 32-bit arithmetic, so the full unsigned range wraps to zero and is treated as empty.
Seen in 1 report
-
$2,000 Medium
-
-
The index used to place a WebChart element into a fixed inline array is never checked against its capacity.
Seen in 1 report
-
The initialisation callback captured raw pointers instead of a weak reference, so pending tasks were not cancelled when the adapter was destroyed after a timeout.
Seen in 1 report
-
The initialisation method makes re-entrant Windows calls without the liveness guards used elsewhere in the class, so it resumes on a deleted object.
Seen in 1 report
-
The initialise decoder methods omitted the pending-reads guard that the deinitialise method uses.
Seen in 1 report
-
The initialise method freed the existing engine before validating arguments and never cleared the data pointer on failure, leaving a dangling pointer.
Seen in 1 report
-
The initially focused view pointer is stored in an unprotected optional and is not cleared when the view is destroyed.
Seen in 1 report
-
The initSize parameter was used directly as a memory reference length without validating it against memory bounds.
Seen in 1 report
-
The inline upload method lacked a guard for externally managed secondary command buffers, so it ended and submitted a buffer it did not own.
Seen in 1 report
-
The inode was allocated without initialising its list head.
Seen in 1 report
-
The input buffer size was a compile-time constant never adjusted for the configurable render quantum, with only a debug assertion.
Seen in 1 report
-
The input element kept a pointer to a directory object that was freed on page reload and dereferenced it later.
-
The input string is not checked for a null terminator before being passed to a length-based duplication.
Seen in 1 report
-
The insert function frees an element on a duplicate tag and returns false, so the caller frees the same element again.
-
The insert preparation function returned an incorrect position for very large strings, leading to an out-of-bounds write.
Seen in 1 report
-
The inspector hardcodes external pointer type tag values that overlap with the embedder's enum tags, so the table cannot distinguish them.
Seen in 1 report
-
The inspector holds a raw pointer to an injected script while a synchronous script callback can destroy the owning context.
Seen in 1 report
-
$3,000 Medium
-
-
The instruction selector assumes a comparison against zero can always be covered without registers, so the compare re-reads a typed array after garbage collection.
-
The instruction selector emitted the copy and set instructions with plain register-use constraints without marking destructively modified inputs as clobbered.
Seen in 1 report
-
The instruction selector peeled a zero-extension node and used a 64-bit shift addressing mode, but the truncation was an identity on ARM64 so dirty upper bits were shifted into the address.
Seen in 1 report
-
The integer overflow check did not account for the extra bytes added to the length, causing an undersized allocation.
-
The interface block parsing path skips the standard variable size check and the size helper does not handle interface block types.
Seen in 1 report
-
The internal admin easy handle is not protected from removal or cleanup by a documented callback.
-
The internal pointer was not updated when the callback modified the array, so freed memory was later accessed.
Seen in 1 report
-
The interpreter's for-loop opcodes trusted that a preceding preparation instruction had validated the loop values as numbers.
Seen in 1 report
-
The IP options buffer was freed without waiting for a grace period, so another CPU could still read it.
Seen in 1 report
-
The IP6_EXTHDR_CHECK macro may free the mbuf when packets are sent to loopback, but functions like dest6_input() do not update the pointer, leading to a double free.
Seen in 1 report
-
The IPC child object stored a raw pointer to its owner, and resolving a promise ran user script that freed the owner.
Seen in 1 report
-
The IPC deserialiser accepts the next index and max stack count independently without cross-validation, and the merge indexes a vector with an unchecked operator.
Seen in 1 report
-
The IPC handler did not validate the length of the public key parameter before passing it to the elliptic curve point decoder.
Seen in 1 report
-
The IPC parent accepted a second Init after the first had resolved, and the decoder Init overwrote its session pointer without releasing the existing session.
-
The isolated document's layout lifecycle is only updated once on load, and later invalidations only trigger a repaint without re-running layout.
Seen in 1 report
-
The item_count value from the network packet is used as a loop bound without validating it against the size of the address_info_item array.
Seen in 1 report
-
The iterator stored raw pointers into a compactable heap vector backing without registering them as movable references, so compaction left them dangling.
Seen in 1 report
-
The IV size is not checked against the fixed stack buffer before copying.
Seen in 1 report
-
The Java bridge holds a native pointer that is not invalidated when the C++ object is destroyed, and a race allows use after free.
Seen in 1 report
-
The Java payments bridge kept a final native pointer that was never cleared when the C++ object was destroyed, and the observer was not removed.
Seen in 1 report
-
The Java settings adapter cached raw pointers to C++ template URL objects without ownership tracking.
Seen in 1 report
-
The JavaScript array handling code did not verify that an object was still valid before performing operations on it, leading to a use-after-free.
Seen in 1 report
-
The JavaScript engine does not manage object lifetimes when form field events trigger page deletion.
Seen in 1 report
-
The JavaScript-to-WebAssembly boundary uses a subtype check that ignores the exactness flag.
Seen in 1 report
-
$55,000 High
-
-
The JIT assumed an object was of one type when it was actually another.
Seen in 1 report
-
The JIT compiler did not properly validate user-supplied data before using it.
Seen in 1 report
-
The JIT compiler generated code that did not clean up the floating-point register stack after use.
-
The K-plane buffer size is computed with an unchecked 32-bit multiplication instead of the checked 64-bit arithmetic used for the pixel buffer.
Seen in 1 report