imgcodecs(bmp): limit size of processed images
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 31 Mar 2019 10:43:30 +0000 (10:43 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 31 Mar 2019 10:48:07 +0000 (10:48 +0000)
commit50a6f9d251bfe9c3aec6c977391f38a7b790fe4c
treed7dff72985dd37c3060bc118c0a929321b5ed201
parent360758e8ae5ebaf94c62f739d37892eae4222df4
imgcodecs(bmp): limit size of processed images

2Gb+ images can't be handled properly by current implementation

ozz-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13295
modules/imgcodecs/src/grfmt_bmp.cpp