Skip to content
Snippets Groups Projects
  1. May 31, 2021
    • Tobias Stoeckmann's avatar
      Protect against overly long strings · 51b73ac0
      Tobias Stoeckmann authored
      
      Checking against upper limit of USHRT_MAX must happen before truncating
      size_t to int. On 64 bit systems with strings larger than 2 GB this
      could otherwise lead to negative ints or ints smaller than USHRT_MAX.
      
      In XParseColor this could lead to out of boundary access with strings
      starting with a # (color sequence). A modulo 12 operation is performed
      to validate the string length, but with an overflown length, the for
      loop would eventually read behind terminating '\0' character.
      
      Signed-off-by: default avatarTobias Stoeckmann <tobias@stoeckmann.org>
      51b73ac0
  2. May 30, 2021
  3. May 18, 2021
  4. Apr 22, 2020
  5. Jul 07, 2010
  6. Jan 15, 2010
  7. Oct 24, 2007
  8. May 13, 2005
  9. Apr 23, 2004
  10. Nov 14, 2003
Loading