Skip to content
  1. Mar 14, 2015
    • Emilia Kasper's avatar
      Fix undefined behaviour in shifts. · a2fcab99
      Emilia Kasper authored
      
      
      Td4 and Te4 are arrays of u8. A u8 << int promotes the u8 to an int first then shifts.
      If the mathematical result of a shift (as modelled by lhs * 2^{rhs}) is not representable
      in an integer, behaviour is undefined. In other words, you can't shift into the sign bit
      of a signed integer. Fix this by casting to u32 whenever we're shifting left by 24.
      
      (For consistency, cast other shifts, too.)
      
      Caught by -fsanitize=shift
      
      Submitted by Nick Lewycky (Google)
      
      Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
      (cherry picked from commit 8b37e5c1)
      a2fcab99
  2. Mar 12, 2015
  3. Mar 11, 2015
  4. Mar 10, 2015
  5. Mar 09, 2015
  6. Mar 08, 2015
  7. Mar 07, 2015
  8. Mar 06, 2015
  9. Mar 05, 2015
  10. Mar 02, 2015
  11. Feb 27, 2015
  12. Feb 26, 2015
  13. Feb 25, 2015
  14. Feb 24, 2015
  15. Feb 22, 2015