chiark / gitweb /
terminal/grdev: simplify DRM event parsing
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Oct 2014 15:09:05 +0000 (17:09 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 13:57:00 +0000 (15:57 +0200)
commit6a15ce2b3eb852023d77787f96c6a4a72eb4d60d
tree43ce7b5cdb45c1b2ea76d1be0722d5c87489e3ca
parentf1f5b2a3bdc3178d57c4088a7cd7758afaeba9cb
terminal/grdev: simplify DRM event parsing

Coverity complained about this code and is partially right. We are not
really protected against integer overflows. Sure, unlikely, but lets just
avoid any overflows and properly protect our parser loop.
src/libsystemd-terminal/grdev-drm.c