Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1008)

Issue 7313045: If the stack is too deep we could get Stack Overflow in pdf's ContentEntry's destructor. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by edisonn
Modified:
11 years, 9 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

If the stack is too deep we could get Stack Overflow in pdf's ContentEntry's destructor. Committed: https://code.google.com/p/skia/source/detail?r=7605

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M src/pdf/SkPDFDevice.cpp View 1 1 chunk +16 lines, -0 lines 2 comments Download

Messages

Total messages: 6
edisonn
11 years, 9 months ago (2013-02-05 22:56:30 UTC) #1
Steve VanDeBogart
LGTM Do you know why the stack gets so big though? I can understand the ...
11 years, 9 months ago (2013-02-05 23:00:50 UTC) #2
edisonn
On 2013/02/05 23:00:50, Steve VanDeBogart wrote: > LGTM Do you know why the stack gets ...
11 years, 9 months ago (2013-02-05 23:10:45 UTC) #3
Steve VanDeBogart
Hmm, ok, LGTM
11 years, 9 months ago (2013-02-05 23:15:59 UTC) #4
mike3
This while-loop is much better than a recursive sequence of destructors. Good fix. https://codereview.appspot.com/7313045/diff/2001/src/pdf/SkPDFDevice.cpp File ...
11 years, 9 months ago (2013-02-06 03:40:50 UTC) #5
edisonn
11 years, 9 months ago (2013-02-06 13:39:20 UTC) #6
Message was sent while issue was closed.
https://codereview.appspot.com/7313045/diff/2001/src/pdf/SkPDFDevice.cpp
File src/pdf/SkPDFDevice.cpp (right):

https://codereview.appspot.com/7313045/diff/2001/src/pdf/SkPDFDevice.cpp#newc...
src/pdf/SkPDFDevice.cpp:502: ContentEntry* val = fNext.release();
agree, I will check in once the tree is opened
On 2013/02/06 03:40:50, mike3 wrote:
> Don't think you need this if-block, as the while-loop will perform the same
> check.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b