broadway: make sure color/delta run length do not overflow

Fixes bug 723045.
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2014-03-12 17:02:58 +01:00 committed by Michael Natterer
parent 6e4567e73b
commit ad39298f6d

View File

@ -228,7 +228,9 @@ encode_pixel (struct encoder *encoder, guint32 color, guint32 prev_color)
(encoder->delta != delta && (encoder->delta != delta &&
encoder->delta_run > encoder->color_run) || encoder->delta_run > encoder->color_run) ||
(encoder->delta != delta && encoder->color != color)) (encoder->delta != delta && encoder->color != color) ||
(encoder->delta_run == 0xFFFFF || encoder->color_run == 0xFFFFF))
{ {
encode_run (encoder); encode_run (encoder);