Skip to content

Commit 1b200c1

Browse files
committed
Fuzzing fixes
1 parent 142bc7c commit 1b200c1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

app/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ use fast_image_resize::{
1111
CpuExtensions, FilterType, IntoImageView, PixelType, ResizeAlg, ResizeOptions, Resizer,
1212
};
1313
use image::{EncodableLayout, GenericImageView, ImageReader};
14-
use pic_scale::{
15-
ImageSize, ImageStore, ImageStoreMut, ImageStoreScaling, ResamplingFunction, RgbF16ImageStore,
16-
RgbF16ImageStoreMut, Rgba16ImageStoreMut, RgbaF16ImageStore, RgbaF16ImageStoreMut, Scaler,
17-
Scaling, ScalingU16, ThreadingPolicy, WorkloadStrategy,
18-
};
14+
use pic_scale::{Ar30ByteOrder, ImageSize, ImageStore, ImageStoreMut, ImageStoreScaling, ResamplingFunction, RgbF16ImageStore, RgbF16ImageStoreMut, Rgba16ImageStoreMut, RgbaF16ImageStore, RgbaF16ImageStoreMut, Scaler, Scaling, ScalingU16, ThreadingPolicy, WorkloadStrategy};
1915

2016
fn resize_plane(
2117
src_width: usize,

src/fixed_point_vertical_ar30.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fn convolve_column_handler_fixed_point_direct_buffer_double<
144144
}
145145
}
146146

147-
let v_dst0 = &mut dst[v_start_px * 4..(v_start_px + BUFFER_SIZE * 4)];
147+
let v_dst0 = &mut dst[v_start_px * 4..(v_start_px * 4 + BUFFER_SIZE * 4)];
148148
for (dst, src) in v_dst0.chunks_exact_mut(4).zip(direct_store0) {
149149
let saturated = src
150150
.saturate_ar30()

0 commit comments

Comments
 (0)