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.
-
Validate object pointers before dereferencing them during marking.
Seen in 1 report
-
$100 High
-
-
Validate object types before use to prevent type confusion.
Seen in 1 report
-
Validate object types during display list hit testing.
Seen in 1 report
-
Validate objects before freeing them during USDC and USDZ parsing.
-
Validate pointers in escape request handling before calling through them.
Seen in 1 report
-
Validate readPixels coordinates before passing them to the graphics driver.
Seen in 1 report
-
Critical
-
-
Validate renderer-supplied YCbCr info against the actual backing texture in all backends.
Seen in 1 report
-
Validate routing header length fields before allocating a buffer.
-
Validate sizes before allocation so integer arithmetic cannot overflow.
Seen in 1 report
-
Validate sizes when building the archive file list.
Seen in 1 report
-
Validate source rectangle and image dimensions before premultiplying pixels.
Seen in 1 report
-
Validate stride values from the file before using them in pointer arithmetic.
Seen in 1 report
-
Validate that a user-supplied value is a legitimate pointer before dereferencing it.
-
Validate that computed pointers stay within the config buffer.
Seen in 1 report
-
Validate that frame unique names are globally unique within the frame tree.
Seen in 1 report
-
Validate that NumProperties matches the PropertySet size before looping over entries.
-
Validate that the CharStringsOffset value is within the bounds of the CFF2 table.
Seen in 1 report
-
Validate that the offset parameter is non-negative.
Seen in 1 report
-
Validate that the output register number is within the declared range.
Seen in 1 report
-
Validate that the scale argument is non-negative.
Seen in 1 report
-
Validate that the sector size read from the file is at least 4 before using it in offset calculations.
Seen in 1 report
-
Validate that the two gamma values have the same sign.
Seen in 1 report
-
Validate that the user-supplied buffer length matches the real buffer size before using it in address calculations.
Seen in 1 report
-
Validate the authentication tag length before reading it during decryption.
Seen in 1 report
-
Validate the child index before inserting into the accessibility array.
Seen in 1 report
-
Validate the colour record count against the maximum index plus palette entries before calculating the buffer size.
Seen in 1 report
-
Validate the column index against the buffer width.
Seen in 1 report
-
Validate the declared EAPOL length against the actual packet size and a maximum limit.
Seen in 1 report
-
Validate the destination buffer size before copying data into a user-supplied address.
Seen in 1 report
-
Validate the dimension count against the fixed array size before looping.
Seen in 1 report
-
Validate the first macroblock position for every slice, not just the first.
Seen in 1 report
-
Validate the image height before calculating indices into the image buffer.
Seen in 1 report
-
Validate the length and structure of data in signature fields.
-
Validate the length of session key data before copying it into a fixed-size heap buffer.
Seen in 1 report
-
Validate the length of user-supplied data before copying it into a fixed-length heap buffer.
-
Validate the length of user-supplied data before copying it into a heap buffer.
Seen in 1 report
-
Validate the length of user-supplied data in the multilines log format parser before the memory write.
Seen in 1 report
-
Validate the length parameter so it cannot underflow into a negative string length.
Seen in 1 report
-
Validate the loop counter read from the file before using it to clear heap memory.
Seen in 1 report
-
Validate the lower offset field before computing the destination pointer.
-
Validate the number of atoms value before using it to allocate a buffer and control a loop.
Seen in 1 report
-
Validate the number of colour components from the header against the buffer size calculation.
Seen in 1 report
-
Validate the object type before reading geometry attributes.
Seen in 1 report
-
Validate the on-disk entry count before using it to bound loops.
Seen in 1 report
-
Validate the per-channel quantization axis before fusing the operator.
Seen in 1 report
-
$43,000 Critical
-
-
Validate the read offset from shared memory against the real ring buffer size before computing available space.
Seen in 1 report
-
Validate the Referer header length before copying it into a fixed-size stack buffer.
-
Validate the signed byte count read from the data file before dividing and allocating.
Seen in 1 report
-
Validate the size and content of USB request messages.
Seen in 1 report
-
Validate the size and content of user-supplied data when handling Doc objects.