You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report and the patch, this appears to be a bug. However, the real solution might be more involved, at least in FLTK 1.4.
Note 1: Regarding FLTK 1.3 and 1.4 (patch given above): I'd suggest to keep the signedness (sy and line_d are both int's) and use (long) for the cast rather than (ulong).
Note 2: I'm afraid that there are similar overflows in bilinear scaling mode below (lines 506 etc. in current 1.4 (master) code):
I'm working with a large JPEG image [30208 x 30208 x 3]. I have built fltk 1.3.5 in 64-bit mode using Visual Studio 2019.
In FL_Image.cxx, `Fl_RGB_Image::copy', there is an integer overflow problem that occurs with said image, when using FL_RGB_SCALING_NEAREST.
Namely, in this line:
I used
ulong
to fix it, as follows:I see the problem still exists in the 1.4 code.
The text was updated successfully, but these errors were encountered: