diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2015-12-23 20:53:53 -0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-01-12 11:40:38 -0800 |
commit | 18e4573cea99fc95aad12b14350bd90c39b9682b (patch) | |
tree | f99ba5fa8ae4a85e68edc300068ed3683a8328c7 /Makefile.am | |
parent | 3f650b8c58d9b2815727f412b6e3bc5f444e814e (diff) | |
download | weston-18e4573cea99fc95aad12b14350bd90c39b9682b.tar.gz |
compositor: Verify that the maximum number of outputs is not exceeded
output_id_pool is defined as a uint32_t, thus ffs() provides a range of
1-32 available id numbers. When the 33rd output is enabled, Weston will
set the ID to (unsigned)(-1) and thus lead to some unexpected
behaviors.
I'm not sure what the best way to handle this error would be since this
is in an initialization routine, but at least let's document the
potential error condition with an assert().
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions