Set a limit on the size for BMP images DO NOT MERGE

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 <>
(cherry picked from commit 70eb18cb85c088fbf7b1545515af28769c0097e0)
3 files changed