weston/clients
Derek Foreman 7978bc82dd terminal: Don't crash when selecting non-ascii characters
So it turns out if you cat /dev/urandom and drag select in the mess
you can crash weston-terminal.  There may also be more legitimate
ways of doing this.

The reason is that isalpha() and isdigit() only accept values that
fit within an unsigned char or are EOF.

By treating values < 0 the same as values > 127 we prevent this crash.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2015-09-10 10:07:16 +03:00
..
calibrator.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
clickdot.c Unified multiple definitions of container_of() macro. 2015-06-15 17:11:58 -07:00
cliptest.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
desktop-shell.c Unified multiple definitions of container_of() macro. 2015-06-15 17:11:58 -07:00
dnd.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
editor.c Use [x]zalloc instead of [x]malloc + memset 2015-08-07 11:59:10 -07:00
eventdemo.c Coding style fixes 2015-08-07 12:01:22 -07:00
flower.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
fullscreen.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
gears.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
image.c clients: Fix height typo in clamp_view() 2015-09-09 10:07:27 +03:00
ivi-shell-user-interface.c Coding style fixes 2015-08-07 12:01:22 -07:00
keyboard.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
multi-resource.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
nested-client.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
nested.c Moved the MIN() macro to the helper include. 2015-06-15 17:11:52 -07:00
presentation-shm.c presentation-shm: Allow setting of delay before surface.commit 2015-07-16 13:51:03 +03:00
resizor.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
scaler.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
screenshot.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
simple-damage.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
simple-dmabuf.c clients: add simple-dmabuf client 2015-08-14 15:53:26 +03:00
simple-egl.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
simple-shm.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
simple-touch.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
smoke.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
stacking.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
subsurfaces.c Use [x]zalloc instead of [x]malloc + memset 2015-08-07 11:59:10 -07:00
terminal.c terminal: Don't crash when selecting non-ascii characters 2015-09-10 10:07:16 +03:00
transformed.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
weston-info.c Moved the MIN() macro to the helper include. 2015-06-15 17:11:52 -07:00
weston-simple-im.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
window.c clients: Drop deadlock circumvention hack now that we don't need it 2015-08-21 15:22:03 +03:00
window.h Unified multiple definitions of container_of() macro. 2015-06-15 17:11:58 -07:00