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 3,051 to 3,100 of 3,817
  1. 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
  2. The index buffer offset is not reset when a draw reuses it after a render pass change.

    Seen in 1 report
  3. The index check only rejected values greater than or equal to the string length and did not reject negative indices.

    Seen in 1 report
  4. The index into the high cost table was computed from an attacker-influenced coefficient without a bounds check.

    Seen in 1 report
  5. The index is incremented after the bounds check, allowing a read one byte past the buffer.

    Seen in 1 report
  6. 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
  7. The index used to place a WebChart element into a fixed inline array is never checked against its capacity.

    Seen in 1 report
  8. 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
  9. 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
  10. The initialise decoder methods omitted the pending-reads guard that the deinitialise method uses.

    Seen in 1 report
  11. 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
  12. The initially focused view pointer is stored in an unprotected optional and is not cleared when the view is destroyed.

    Seen in 1 report
  13. The initSize parameter was used directly as a memory reference length without validating it against memory bounds.

    Seen in 1 report
  14. 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
  15. The inode was allocated without initialising its list head.

    Seen in 1 report
  16. 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
  17. The input element kept a pointer to a directory object that was freed on page reload and dereferenced it later.

    Seen in 1 report
  18. The input string is not checked for a null terminator before being passed to a length-based duplication.

    Seen in 1 report
  19. The insert function frees an element on a duplicate tag and returns false, so the caller frees the same element again.

    Seen in 1 report
  20. The insert preparation function returned an incorrect position for very large strings, leading to an out-of-bounds write.

    Seen in 1 report
  21. 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
  22. The inspector holds a raw pointer to an injected script while a synchronous script callback can destroy the owning context.

    Seen in 1 report
  23. 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.

    Seen in 1 report
  24. 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
  25. 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
  26. The integer overflow check did not account for the extra bytes added to the length, causing an undersized allocation.

    Seen in 1 report
  27. 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
  28. The internal admin easy handle is not protected from removal or cleanup by a documented callback.

    Seen in 1 report
  29. The internal pointer was not updated when the callback modified the array, so freed memory was later accessed.

    Seen in 1 report
  30. The interpreter's for-loop opcodes trusted that a preceding preparation instruction had validated the loop values as numbers.

    Seen in 1 report
  31. The IP options buffer was freed without waiting for a grace period, so another CPU could still read it.

    Seen in 1 report
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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.

    Seen in 1 report
  37. 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
  38. 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
  39. 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
  40. The IV size is not checked against the fixed stack buffer before copying.

    Seen in 1 report
  41. 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
  42. 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
  43. The Java settings adapter cached raw pointers to C++ template URL objects without ownership tracking.

    Seen in 1 report
  44. 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
  45. The JavaScript engine does not manage object lifetimes when form field events trigger page deletion.

    Seen in 1 report
  46. The JavaScript-to-WebAssembly boundary uses a subtype check that ignores the exactness flag.

    Seen in 1 report
  47. The JIT assumed an object was of one type when it was actually another.

    Seen in 1 report
  48. The JIT compiler did not properly validate user-supplied data before using it.

    Seen in 1 report
  49. The JIT compiler generated code that did not clean up the floating-point register stack after use.

    Seen in 1 report
  50. 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