In-depth lesson · Memory corruption
Typical fixes
Every point the Memory corruption reports back under this heading, best-backed first, each with the reports it is seen in.
-
Clear stale pointers to animation functions when the cycle collector frees them.
Seen in 1 report
-
Clear the buffer storage pointer after freeing it.
Seen in 1 report
-
Clear the stored element pointer when freeing the array so destruction does not dereference stale memory.
Seen in 1 report
-
Compare the chunk size against a maximum of the same width as the variable, and check the addition before allocating.
Seen in 1 report
-
Complete the fix for heap type index canonicalisation so recursive groups cannot confuse indices.
Seen in 1 report
-
Compute allocation sizes from the pointed-to type rather than the pointer variable.
Seen in 1 report
-
Copy from the caller pointer before freeing the existing buffer.
Seen in 1 report
-
Correct buffer handling in IOBase readline.
Seen in 1 report
-
Correct buffer handling in the HTML5 parser.
Seen in 1 report
-
Critical
-
-
Correct how Control Flow Guard handles objects in memory.
Seen in 1 report
-
Correct how IIS sanitises web requests so buffer lengths are checked before copying.
Seen in 1 report
-
Correct how the components handle objects in memory.
Seen in 1 report
-
Correct how the runtime handles objects in memory.
Seen in 1 report
-
Correct how the Transaction Manager handles objects in memory.
Seen in 1 report
-
Correct object lifetime during link state updates.
Seen in 1 report
-
Correct object lifetime during participant canonicalisation.
Seen in 1 report
-
Correct object lifetime during the refresh driver tick.
Seen in 1 report
-
Correct object lifetime during window opening.
Seen in 1 report
-
Correct object lifetime on the WebRTC socket thread.
Seen in 1 report
-
Correct object lifetime when setting a child document on an accessibility proxy.
Seen in 1 report
-
Correct the bounds check in the UTF16TextIterator consume method when handling fallback hint characters.
Seen in 1 report
-
Correct the bounds check in the VM's value move routine.
Seen in 1 report
-
Correct the buffer size calculation when processing server responses so the allocated size matches what is written.
Seen in 1 report
-
Correct the handling of debug exceptions in the kernel.
Seen in 1 report
-
Correct the handling of external pointers during scavenging so the external pointer table write stays in bounds.
Seen in 1 report
-
Correct the loop comparison and reduce the read size by the bytes already read.
Seen in 1 report
-
Correct the size check so a stream larger than the buffer is rejected.
Seen in 1 report
-
Correct the state stack handling so a superscript token in the top group does not pop an extra state.
Seen in 1 report
-
Cross-check individual key segment values against the header maximum key length and the stack buffer size.
-
Declare members so the vendor decryptor is destroyed before the callback.
Seen in 1 report
-
Decrement the reference count when serialization fails.
Seen in 1 report
-
Derive known bits for 32-bit jumps from the full range rather than only the unsigned minimum and maximum, and tighten runtime ALU sanitation.
-
Derive the sample count from all attachments, not only enabled draw buffers.
Seen in 1 report
-
Detach the ArrayBuffer in the base destructor before the backing store is freed.
-
Dismiss the Java dialog when the native dialog controller is destroyed so the Java side does not hold a dangling pointer.
Seen in 1 report
-
$11,000 High
-
-
Distinguish an explicit zero length from a missing length instead of falling back to strlen.
Seen in 1 report
-
Do not assign a stack-allocated array to a bignum pointer field that a reallocation routine may free.
Seen in 1 report
-
Do not clear the shared-frag flag on a packet that is still being forwarded.
Seen in 1 report
-
Do not destroy a handle when obtaining it failed.
-
Do not free an element twice when a duplicate tag is found.
-
Do not hold a pointer to a buffer across a call into user code that can detach it.
Seen in 1 report
-
Do not keep stale frame references when capturing layout history state.
Seen in 1 report
-
Do not mark the backend initialised from a flush completion handler.
Seen in 1 report
-
Do not overwrite an existing binding while other code holds raw pointers to its internals.
Seen in 1 report
-
Do not pass thread-affine weak pointers to tasks on other threads, or keep the sequence check in release builds.
Seen in 1 report
-
Do not replace a BigInt right shift by a large amount with a constant zero when the value is negative.
Seen in 1 report
-
$11,000 Medium
-
-
Do not short-circuit callback loops during rollback, and only destroy transports once all channels have been updated.
Seen in 1 report
-
Do not subtract the skipped character count from the remaining length twice.
Seen in 1 report
-
Do not trust a process type value stored in the crashing process's own memory.
Seen in 1 report
-
Do not trust the PDF Length field to size the key derivation copy; cap it at the buffer size.
Seen in 1 report