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 - [PATCH] video: waylandmouse: handle mmap errors properly
Summary: [PATCH] video: waylandmouse: handle mmap errors properly
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: All Linux
: P2 normal
Assignee: Gabriel Jacobo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-09 08:28 UTC by Ryo Munakata
Modified: 2014-09-13 22:30 UTC (History)
1 user (show)

See Also:


Attachments
Patch which fixes this bug (836 bytes, patch)
2014-09-09 08:28 UTC, Ryo Munakata
Details | Diff

Note You need to log in before you can comment on or make changes to 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.