Bug 133499

Summary: [CSS Shapes] Fix off by one in creating a RasterShape
Product: WebKit Reporter: Bem Jones-Bey <bjonesbe>
Component: Layout and RenderingAssignee: Bem Jones-Bey <bjonesbe>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Bem Jones-Bey 2014-06-03 20:49:50 PDT
Fix off by one in creating a RasterShape
Comment 1 Bem Jones-Bey 2014-06-03 20:54:56 PDT
Note that crash is not a security issue because it is caught by a release assert in WTF::Vector.
Comment 2 Bem Jones-Bey 2014-06-03 20:57:49 PDT
Created attachment 232463 [details]
Patch
Comment 3 Darin Adler 2014-06-04 17:16:42 PDT
Comment on attachment 232463 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=232463&action=review

> LayoutTests/ChangeLog:9
> +        * fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-crash-expected.txt: Added.
> +        * fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-crash.html: Added.

Would be nicer to do some kind of reference test instead, but maybe that's impractical.
Comment 4 WebKit Commit Bot 2014-06-04 17:46:09 PDT
Comment on attachment 232463 [details]
Patch

Clearing flags on attachment: 232463

Committed r169604: <http://trac.webkit.org/changeset/169604>
Comment 5 WebKit Commit Bot 2014-06-04 17:46:12 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Bem Jones-Bey 2014-06-04 21:07:46 PDT
(In reply to comment #3)
> (From update of attachment 232463 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=232463&action=review
> 
> > LayoutTests/ChangeLog:9
> > +        * fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-crash-expected.txt: Added.
> > +        * fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-crash.html: Added.
> 
> Would be nicer to do some kind of reference test instead, but maybe that's impractical.

Ref tests for image shapes with different combinations of margin, borders, padding and shape margin are forthcoming. I just wanted to get this one fixed ASAP since it's a crasher. Thanks for the review.