From c79afbe1b0db8aa2d810c3fa57dac902d973807f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 24 Nov 2017 12:47:51 +0000 Subject: ubsan: runtime error: left shift of 249 by 24 places MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pixman-bits-image.c:309:20: runtime error: left shift of 249 by 24 places cannot be represented in type 'int' Change-Id: I4f67752f7826225cd2175198084a29ac248b873f Reviewed-on: https://gerrit.libreoffice.org/45226 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- external/cairo/pixman/pixman-ubsan.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'external/cairo/pixman') diff --git a/external/cairo/pixman/pixman-ubsan.patch b/external/cairo/pixman/pixman-ubsan.patch index a26933b2398d..583706ae1764 100644 --- a/external/cairo/pixman/pixman-ubsan.patch +++ b/external/cairo/pixman/pixman-ubsan.patch @@ -20,3 +20,14 @@ next: vx += ux; +--- misc/pixman/pixman/pixman-bits-image.c ++++ misc/build/pixman/pixman/pixman-bits-image.c +@@ -306,7 +306,7 @@ + sgtot = CLIP (sgtot, 0, 0xff); + sbtot = CLIP (sbtot, 0, 0xff); + +- return ((satot << 24) | (srtot << 16) | (sgtot << 8) | (sbtot)); ++ return (((uint32_t)satot << 24) | (srtot << 16) | (sgtot << 8) | (sbtot)); + } + + static force_inline uint32_t -- cgit