FLTK through 1.4.5 contains a heap buffer overflow vulnerability in Fl_BMP_Image::load_bmp_() that allows attackers to corrupt heap memory by supplying crafted BMP or ICO files. Attackers can specify very large image dimensions so the 32-bit row and alpha mask pointer offsets wrap, writing file-derived pixel bytes out of bounds to crash applications or possibly execute code.
https://github.com/fltk/fltk/issues/1647
https://github.com/fltk/fltk/commit/a28e3927faebaba7d33f740d13e88fa0e22fd64d
https://github.com/fltk/fltk/blob/release-1.4.5/src/Fl_BMP_Image.cxx#L285-L304