Set a limit on the size for BMP images

This limit matches the limit used by Chromium. I am not aware of any
real world BMPs that are larger than this (or even close to it), but
there are some invalid BMPs that are larger than this, leading to
crashes when we try to read a row.


Change-Id: I0f662e8d0d7bc0b084e86d0c9288b831e1b296d7
Reviewed-by: Matt Sarett <>
Commit-Queue: Leon Scroggins <>
1 file changed