It's a simple array overrun in QtMir:
nextTopLeftPosition += output.modes[output.preferred_mode_index].size.width.as_int();
Looks like it's missing a check for the possibility of there being no preferred mode:
output.preferred_mode_index >= modes.size()
Which is possible, and almost common (particularly on TVs).
It's a simple array overrun in QtMir:
Looks like it's missing a check for the possibility of there being no preferred mode:
output. preferred_ mode_index >= modes.size()
Which is possible, and almost common (particularly on TVs).