Skip to content

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.

Back to the lesson 901 to 950 of 976
  1. Validate object pointers before dereferencing them during marking.

    Seen in 1 report
  2. Validate object types before use to prevent type confusion.

    Seen in 1 report
  3. Validate object types during display list hit testing.

    Seen in 1 report
  4. Validate objects before freeing them during USDC and USDZ parsing.

    Seen in 1 report
  5. Validate pointers in escape request handling before calling through them.

    Seen in 1 report
  6. Validate readPixels coordinates before passing them to the graphics driver.

    Seen in 1 report
  7. Validate renderer-supplied YCbCr info against the actual backing texture in all backends.

    Seen in 1 report
  8. Validate routing header length fields before allocating a buffer.

    Seen in 1 report
  9. Validate sizes before allocation so integer arithmetic cannot overflow.

    Seen in 1 report
  10. Validate sizes when building the archive file list.

    Seen in 1 report
  11. Validate source rectangle and image dimensions before premultiplying pixels.

    Seen in 1 report
  12. Validate stride values from the file before using them in pointer arithmetic.

    Seen in 1 report
  13. Validate that a user-supplied value is a legitimate pointer before dereferencing it.

    Seen in 1 report
  14. Validate that computed pointers stay within the config buffer.

    Seen in 1 report
  15. Validate that frame unique names are globally unique within the frame tree.

    Seen in 1 report
  16. Validate that NumProperties matches the PropertySet size before looping over entries.

    Seen in 1 report
  17. Validate that the CharStringsOffset value is within the bounds of the CFF2 table.

    Seen in 1 report
  18. Validate that the offset parameter is non-negative.

    Seen in 1 report
  19. Validate that the output register number is within the declared range.

    Seen in 1 report
  20. Validate that the scale argument is non-negative.

    Seen in 1 report
  21. Validate that the sector size read from the file is at least 4 before using it in offset calculations.

    Seen in 1 report
  22. Validate that the two gamma values have the same sign.

    Seen in 1 report
  23. Validate that the user-supplied buffer length matches the real buffer size before using it in address calculations.

    Seen in 1 report
  24. Validate the authentication tag length before reading it during decryption.

    Seen in 1 report
  25. Validate the child index before inserting into the accessibility array.

    Seen in 1 report
  26. Validate the colour record count against the maximum index plus palette entries before calculating the buffer size.

    Seen in 1 report
  27. Validate the column index against the buffer width.

    Seen in 1 report
  28. Validate the declared EAPOL length against the actual packet size and a maximum limit.

    Seen in 1 report
  29. Validate the destination buffer size before copying data into a user-supplied address.

    Seen in 1 report
  30. Validate the dimension count against the fixed array size before looping.

    Seen in 1 report
  31. Validate the first macroblock position for every slice, not just the first.

    Seen in 1 report
  32. Validate the image height before calculating indices into the image buffer.

    Seen in 1 report
  33. Validate the length and structure of data in signature fields.

    Seen in 1 report
  34. Validate the length of session key data before copying it into a fixed-size heap buffer.

    Seen in 1 report
  35. Validate the length of user-supplied data before copying it into a fixed-length heap buffer.

    Seen in 1 report
  36. Validate the length of user-supplied data before copying it into a heap buffer.

    Seen in 1 report
  37. Validate the length of user-supplied data in the multilines log format parser before the memory write.

    Seen in 1 report
  38. Validate the length parameter so it cannot underflow into a negative string length.

    Seen in 1 report
  39. Validate the loop counter read from the file before using it to clear heap memory.

    Seen in 1 report
  40. Validate the lower offset field before computing the destination pointer.

    Seen in 1 report
  41. Validate the number of atoms value before using it to allocate a buffer and control a loop.

    Seen in 1 report
  42. Validate the number of colour components from the header against the buffer size calculation.

    Seen in 1 report
  43. Validate the object type before reading geometry attributes.

    Seen in 1 report
  44. Validate the on-disk entry count before using it to bound loops.

    Seen in 1 report
  45. Validate the per-channel quantization axis before fusing the operator.

    Seen in 1 report
  46. Validate the read offset from shared memory against the real ring buffer size before computing available space.

    Seen in 1 report
  47. Validate the Referer header length before copying it into a fixed-size stack buffer.

    Seen in 1 report
  48. Validate the signed byte count read from the data file before dividing and allocating.

    Seen in 1 report
  49. Validate the size and content of USB request messages.

    Seen in 1 report
  50. Validate the size and content of user-supplied data when handling Doc objects.

    Seen in 1 report