We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2724

Summary: [PATCH] video: waylandmouse: handle mmap errors properly
Product: SDL Reporter: Ryo Munakata <afpacket>
Component: videoAssignee: Gabriel Jacobo <gabomdq>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq
Version: 2.0.3   
Hardware: All   
OS: Linux   
Attachments: Patch which fixes this bug

Description Ryo Munakata 2014-09-09 08:28:16 UTC
Created attachment 1865 [details]
Patch which fixes this bug

Just an one-liner patch.
We need to look at the return value of mmap to handle errors of mmap.
Comment 1 Sam Lantinga 2014-09-13 09:17:50 UTC
Got it, thanks!
https://hg.libsdl.org/SDL/rev/64fcdfcd5bca
Comment 2 Sam Lantinga 2014-09-13 22:30:19 UTC
Patch committed.