~vcs-imports/libpixman/master

Viewing all changes in revision 2102.

  • Committer: Jonathan Kew
  • Date: 2019-09-11 12:07:46 UTC
  • Revision ID: git-v1:d60b0af5e32fed034bd163d244148947d3ed91a8
Avoid undefined behavior (left-shifting negative value) in pixman_int_to_fixed

Reported in https://bugzilla.mozilla.org/show_bug.cgi?id=1580352. Casting the argument to uint32_t should avoid invoking undefined behavior here. We'll still have *implementation-defined* behavior when casting the result back to pixman_fixed_t, but that's better than *undefined*.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: