Bug 77799 - SharedBuffer::getSomeData() can potentially return a pointer past the data
Summary: SharedBuffer::getSomeData() can potentially return a pointer past the data
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords: InRadar
Depends on: 77718
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-03 19:50 PST by Benjamin Poulain
Modified: 2012-02-13 17:41 PST (History)
4 users (show)

See Also:


Attachments
Patch (2.81 KB, patch)
2012-02-03 19:57 PST, Benjamin Poulain
ddkilzer: review+
ddkilzer: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2012-02-03 19:50:05 PST
SharedBuffer::getSomeData() can potentially return a pointer past the data. It does nothing bad at the moment because all the call to SharedBuffer::getSomeData() are done the same way, but nothing prevent such accident in the future.
Comment 1 Benjamin Poulain 2012-02-03 19:57:36 PST
Created attachment 125469 [details]
Patch
Comment 2 Benjamin Poulain 2012-02-03 19:58:31 PST
This patch is on top of #77718, please disregard the bots.
Comment 3 David Kilzer (:ddkilzer) 2012-02-11 21:47:39 PST
<rdar://problem/10849813>
Comment 4 David Kilzer (:ddkilzer) 2012-02-11 21:50:27 PST
Comment on attachment 125469 [details]
Patch

r=me
Comment 5 Benjamin Poulain 2012-02-13 17:41:09 PST
Committed r107652: <http://trac.webkit.org/changeset/107652>