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
(This is part of the work on a test suite for imagelib that @olleolleolle and I are working on.)
Here's a trigger for an out-of-bounds array indexing operation in imagePNG.ml (line 952).
As you can see the code already has a FIXME, so we should! :-)
|3 ->
let image = create_rgb ~max_val:255 w h infor y =0to h -1dofor x =0to w -1dolet index = unfiltered_int.(y).(x) inlet index =(* FIXME *)if index >=Array.length !palette
then (Printf.fprintf stderr "Palette index too big...\n%!"; 0)
else index
inlet p =!palette.(index) in(* <-- line 952 *)
write_rgb image x y p.r p.g p.b
donedone;
image
The text was updated successfully, but these errors were encountered:
(This is part of the work on a test suite for
imagelib
that @olleolleolle and I are working on.)Here's a trigger for an out-of-bounds array indexing operation in
imagePNG.ml
(line 952).As you can see the code already has a
FIXME
, so we should! :-)The text was updated successfully, but these errors were encountered: