1. 14 Mar, 2015 1 commit
    • 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. 12 Mar, 2015 9 commits
  3. 11 Mar, 2015 2 commits
  4. 10 Mar, 2015 2 commits
  5. 09 Mar, 2015 2 commits
  6. 08 Mar, 2015 3 commits
  7. 07 Mar, 2015 1 commit
  8. 06 Mar, 2015 1 commit
  9. 05 Mar, 2015 2 commits
  10. 02 Mar, 2015 2 commits
  11. 27 Feb, 2015 5 commits
  12. 26 Feb, 2015 1 commit
  13. 25 Feb, 2015 6 commits
  14. 24 Feb, 2015 1 commit
  15. 22 Feb, 2015 2 commits