diff options
Diffstat (limited to 'external/pdfium/ubsan.patch')
-rw-r--r-- | external/pdfium/ubsan.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/external/pdfium/ubsan.patch b/external/pdfium/ubsan.patch new file mode 100644 index 000000000000..08864b3a63b9 --- /dev/null +++ b/external/pdfium/ubsan.patch @@ -0,0 +1,19 @@ +--- third_party/agg23/agg_rasterizer_scanline_aa.h ++++ third_party/agg23/agg_rasterizer_scanline_aa.h +@@ -349,14 +349,14 @@ + 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); + } |