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 2,001 to 2,050 of 3,817
  1. Data in Mach messages is interpreted as the wrong type.

    Seen in 1 report
  2. Data owned by a host window is freed when the window is destroyed while a moved handler still references it.

    Seen in 1 report
  3. Data within project files used to access memory without size validation.

    Seen in 1 report
  4. Decoder classes did not initialise their full state in constructors and relied on the caller to configure them before the first item.

    Seen in 1 report
  5. Decrypted data is written into a fixed-length stack buffer without checking the input length.

    Seen in 1 report
  6. Decrypted message data is copied into a fixed-length heap buffer without validating its length.

    Seen in 1 report
  7. Default buffer alignment omitted the device nonCoherentAtomSize and the flush/invalidate code rounded the size up without aligning the offset or clamping the end to the mapped block.

    Seen in 1 report
  8. Default COM reference counting let destruction happen on a background thread while a weak-pointer task on the media thread was being checked and invoked.

    Seen in 1 report
  9. Defaulted move operations shallow-copy a raw pointer without transferring ownership, so the moved-from object frees the buffer in its destructor.

    Seen in 1 report
  10. Deleting an element decrements the counter and nulls pointers, so a later insert computes an index that overwrites an existing element.

    Seen in 1 report
  11. Deleting CSS rules freed memory but a dangling pointer was dereferenced later, a use-after-free.

    Seen in 1 report
  12. Deletion handling checks only whether the deleted node itself is edited, not whether it is an ancestor of an edited node.

    Seen in 1 report
  13. DeoptimizeFunction uses the default code argument instead of the executing OSR code, so the OSR code is not marked for deoptimisation.

    Seen in 1 report
  14. Dereferencing a pointer influenced by a local user without validation.

    Seen in 1 report
  15. Derived frame destructors nulled the ArrayBuffer before the base destructor could detach it, so the backing store was freed while referenced.

    Seen in 1 report
  16. Derived members are destroyed before base members, unloading libraries still referenced.

    Seen in 1 report
  17. Descriptor subtyping is applied to unrelated struct types, so a cast between them succeeds.

    Seen in 1 report
  18. Deserialisation does not reject non-finite floating-point values that are later used as ordered map keys.

    Seen in 1 report
  19. Deserialisation passes only the shared memory data pointer and never checks that image dimensions fit the mapping.

    Seen in 1 report
  20. Destroy command buffer removed a route even when it was not a command buffer stub, and the deferred flush dereferenced a map lookup result without checking for the end.

    Seen in 1 report
  21. Destroy unregisters the network callback and deletes the native object but does not purge already queued callbacks.

    Seen in 1 report
  22. Device emulation did not check for null function pointers or return values from queue operations.

    Seen in 1 report
  23. Device-supplied strings are concatenated into a format string and passed as the format argument.

    Seen in 1 report
  24. DHCP option data length is not validated before copying into a fixed-size stack buffer.

    Seen in 1 report
  25. Dimensions are multiplied without an overflow check, so a huge shape produces a small allocation.

    Seen in 1 report
  26. DirectX mishandles objects in memory, allowing kernel-mode code execution.

    Seen in 1 report
  27. Divisibility of buffer size by render quantum was only checked with a debug assertion removed in release builds.

    Seen in 1 report
  28. Driver does not validate that output register operands in shader bytecode stay within the range declared by the shader.

    Seen in 1 report
  29. Driver fails to properly validate shader operands, leading to a double free when the shader is compiled.

    Seen in 1 report
  30. Driver fails to validate shader instruction operands, allowing a corrupted pointer to be passed to a memory reallocation function.

    Seen in 1 report
  31. Driver fails to validate the source register index of the round_ni shader instruction, so an out-of-range register leads to an out-of-bounds write during a memory set.

    Seen in 1 report
  32. Dynamically sized stack allocations are placed below the saved registers and stack guard, so a contiguous overflow reaches the return address.

    Seen in 1 report
  33. Each call created a new subscription storing the same raw pointer but only the most recent subscription was unsubscribed, leaving earlier callbacks dangling.

    Seen in 1 report
  34. EHCI component fails to validate the length of user-supplied data before copying into a heap buffer.

    Seen in 1 report
  35. Engine mishandles object types during replacement in RegExp.replace.

    Seen in 1 report
  36. Errors during parsing of entries are not handled properly, leaving the parser in a bad state.

    Seen in 1 report
  37. Escape analysis elided the this object when a constructor returned a constant, but the Error constructor later tried to access it.

    Seen in 1 report
  38. Escape helpers sized a stack buffer for a 256-byte name but never bounded the caller-supplied length before escaping.

    Seen in 1 report
  39. Event dispatch held a raw reference to content that script could free during a mouseout handler before the reference was used.

    Seen in 1 report
  40. Event handler cleanup freed parts of an object while a script reference to it was still held.

    Seen in 1 report
  41. Exactness of the input reference is propagated to the result while using the encoded immediate type's descriptor.

    Seen in 1 report
  42. Example code copies a host string without verifying it fits the destination buffer.

    Seen in 1 report
  43. Exiting fullscreen can synchronously destroy the web contents and its print manager, but the code does not re-check the object before continuing.

    Seen in 1 report
  44. Extension data is freed after a failed allocation but the lookup still dereferences the stale pointer.

    Seen in 1 report
  45. Fake reference counting plus a destroy method that deletes the object without waiting for pending thread pool callbacks.

    Seen in 1 report
  46. Fast rundown allowed off-thread destruction, a check was removed in release builds, and a global map was accessed from two threads without synchronisation.

    Seen in 1 report
  47. Feature installation added properties without checking for an existing key, so a lookup later selected the old descriptor index.

    Seen in 1 report
  48. Field reordering is not applied recursively to nested structs, so a later pass strips sampler fields and uses an original field index on the shortened list.

    Seen in 1 report
  49. Fields defined as narrow values in a specification are represented as wider integers over IPC and never range-checked before use.

    Seen in 1 report
  50. File data is read into a fixed buffer without null termination, then string functions run past the end.

    Seen in 1 report