There is no bounds checking in source\blender\imbuf\intern\bmp.c leading to out of bound access if the bmp file is malformed.
- Copy the attached bmp files to the default folder (on windows c:\Users\[username]\Documents\
- Click the Shader tab
- The file dialog in the upper left will try to make thumbnails, and crash while doing it.
Note: The problem exists in the 16bpp (rgb565) codepath as well but i had nothing that could write that format.
Note2: The header checks also do not respect the buffer bounds, i didn't have time to make to make a crashing bmp, but whoever will work on this will have to fix that as well.
note3: the crashy bmp files are created by taking a regular bmp file and truncating it to about half their size, leading to a correct header, but not enough image data in the file.
Operating system: Windows 10 Pro, Version 1903, Build: 18362.476
Graphics card: Nvidia GTX 980 TI Driver 441.20
Broken: 2.181 release
On fresh install of 2.81, startup with default project.
Select the Shader tab and Blender crashes with:
found bundled python: C:\Program Files\Blender Foundation\Blender 2.81\2.81\python
Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF63621A4B0
Module : C:\Program Files\Blender Foundation\Blender 2.81\blender.exe