Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: xsrc/external/mit/pixman/dist/pixman



Module Name:    xsrc
Committed By:   mrg
Date:           Mon Jan  9 02:49:52 UTC 2023

Modified Files:
        xsrc/external/mit/pixman/dist/pixman: pixman.h

Log Message:
pull across a fix from upstream to fix clang builds.

https://gitlab.freedesktop.org/pixman/pixman/-/merge_requests/16/diffs?commit_id=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*.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 xsrc/external/mit/pixman/dist/pixman/pixman.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index