Skip to content

Avoid undefined behavior (left-shifting negative value) in pixman_int_to_fixed

Jonathan Kew requested to merge jfkthame/pixman:patch-1 into master

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.

Merge request reports