Bug 141304 - [WK2] Properly check for mmap() error case
Summary: [WK2] Properly check for mmap() error case
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 13:58 PST by Chris Dumez
Modified: 2015-02-05 14:13 PST (History)
5 users (show)

See Also:


Attachments
Patch (3.79 KB, patch)
2015-02-05 14:03 PST, Chris Dumez
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-02-05 13:58:17 PST
mmap() returns MAP_FAILED, which is (void*)-1, not a null pointer in case of failure.
Comment 1 Chris Dumez 2015-02-05 14:03:18 PST
Created attachment 246128 [details]
Patch
Comment 2 Chris Dumez 2015-02-05 14:13:14 PST
Committed r179707: <http://trac.webkit.org/changeset/179707>