diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-05-14 08:55:58 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-05-14 10:44:35 +0200 |
commit | 56195a4d0bbb21edeed1cea7a45283141c733f18 (patch) | |
tree | 28db1eb7effb570cc0bdc8a953df99fb7cb54fb8 /external/pdfium/ubsan.patch | |
parent | b160db926b574b7e9d6696d49dbbce8dd289aade (diff) |
pdfium: update to 3426
Allows dropping the ugly freetype.patch.1.
Change-Id: Ifa8a6dac02a49a2c13572e59773261a847efad3f
Reviewed-on: https://gerrit.libreoffice.org/54294
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'external/pdfium/ubsan.patch')
-rw-r--r-- | external/pdfium/ubsan.patch | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/external/pdfium/ubsan.patch b/external/pdfium/ubsan.patch index af39e3d95db3..91428326fc5d 100644 --- a/external/pdfium/ubsan.patch +++ b/external/pdfium/ubsan.patch @@ -22,22 +22,3 @@ int rowbytes = std::min(abs(src_pitch), dest_pitch); for (int row = 0; row < bmheight; row++) memcpy(pDestBuf + row * dest_pitch, pSrcBuf + row * src_pitch, rowbytes); ---- third_party/agg23/agg_rasterizer_scanline_aa.h -+++ third_party/agg23/agg_rasterizer_scanline_aa.h -@@ -349,14 +349,14 @@ public: - cover += cur_cell->cover; - } - if(area) { -- alpha = calculate_alpha((cover << (poly_base_shift + 1)) - area, no_smooth); -+ alpha = calculate_alpha(int(unsigned(cover) << (poly_base_shift + 1)) - area, no_smooth); - if(alpha) { - sl.add_cell(x, alpha); - } - x++; - } - if(num_cells && cur_cell->x > x) { -- alpha = calculate_alpha(cover << (poly_base_shift + 1), no_smooth); -+ alpha = calculate_alpha(unsigned(cover) << (poly_base_shift + 1), no_smooth); - if(alpha) { - sl.add_span(x, cur_cell->x - x, alpha); - } |