Skip to content

Commit

Permalink
Fuzzing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jan 29, 2025
1 parent 142bc7c commit 1b200c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ use fast_image_resize::{
CpuExtensions, FilterType, IntoImageView, PixelType, ResizeAlg, ResizeOptions, Resizer,
};
use image::{EncodableLayout, GenericImageView, ImageReader};
use pic_scale::{
ImageSize, ImageStore, ImageStoreMut, ImageStoreScaling, ResamplingFunction, RgbF16ImageStore,
RgbF16ImageStoreMut, Rgba16ImageStoreMut, RgbaF16ImageStore, RgbaF16ImageStoreMut, Scaler,
Scaling, ScalingU16, ThreadingPolicy, WorkloadStrategy,
};
use pic_scale::{Ar30ByteOrder, ImageSize, ImageStore, ImageStoreMut, ImageStoreScaling, ResamplingFunction, RgbF16ImageStore, RgbF16ImageStoreMut, Rgba16ImageStoreMut, RgbaF16ImageStore, RgbaF16ImageStoreMut, Scaler, Scaling, ScalingU16, ThreadingPolicy, WorkloadStrategy};

fn resize_plane(
src_width: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/fixed_point_vertical_ar30.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn convolve_column_handler_fixed_point_direct_buffer_double<
}
}

let v_dst0 = &mut dst[v_start_px * 4..(v_start_px + BUFFER_SIZE * 4)];
let v_dst0 = &mut dst[v_start_px * 4..(v_start_px * 4 + BUFFER_SIZE * 4)];
for (dst, src) in v_dst0.chunks_exact_mut(4).zip(direct_store0) {
let saturated = src
.saturate_ar30()
Expand Down

0 comments on commit 1b200c1

Please sign in to comment.