Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Issue 2414473003: Handle undefined shifts in CPDF_PSEngine. (Closed)

Created:
4 years, 2 months ago by Lei Zhang
Modified:
3 years, 10 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Handle undefined shifts in CPDF_PSEngine. BUG=chromium:641551

Patch Set 1 #

Total comments: 1

Patch Set 2 : avoid more undefined behavior #

Patch Set 3 : self nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M core/fpdfapi/page/fpdf_page_func.cpp View 1 2 1 chunk +13 lines, -4 lines 2 comments Download

Messages

Total messages: 16 (9 generated)
Lei Zhang
4 years, 2 months ago (2016-10-12 17:24:43 UTC) #6
Tom Sepez
https://codereview.chromium.org/2414473003/diff/1/core/fpdfapi/page/fpdf_page_func.cpp File core/fpdfapi/page/fpdf_page_func.cpp (right): https://codereview.chromium.org/2414473003/diff/1/core/fpdfapi/page/fpdf_page_func.cpp#newcode346 core/fpdfapi/page/fpdf_page_func.cpp:346: if (shift < -31 || shift > 31) http://en.cppreference.com/w/cpp/language/operator_arithmetic ...
4 years, 2 months ago (2016-10-12 20:17:58 UTC) #7
Lei Zhang
How's patch set 3?
4 years, 2 months ago (2016-10-12 23:42:14 UTC) #12
Tom Sepez
let me see how I break it down if (shift < -31) fail; else if ...
4 years, 2 months ago (2016-10-20 20:55:30 UTC) #13
Tom Sepez
On 2016/10/20 20:55:30, Tom Sepez wrote: > let me see how I break it down ...
4 years, 2 months ago (2016-10-20 21:01:57 UTC) #14
Lei Zhang
On 2016/10/20 21:01:57, Tom Sepez wrote: > I think what we need to do is ...
4 years, 2 months ago (2016-10-20 21:07:39 UTC) #15
Tom Sepez
3 years, 10 months ago (2017-01-27 19:13:24 UTC) #16
On 2016/10/20 21:07:39, Lei Zhang (OOO) wrote:
> On 2016/10/20 21:01:57, Tom Sepez wrote:
> > I think what we need to do is to implement safe << and >> for the integral
> types
> > in our safe math package.
> > Justin and I will take a stab at this, since no-one is ever going to get
this
> > right on their own.
> 
> Sounds good. I'll just wait for that then.

Closing without landing, separate patch according to the discussion has landed.

Powered by Google App Engine
This is Rietveld 408576698