You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
621 B
24 lines
621 B
From d56fe642bbbd8fe3d20c851b950db3fcaea53c7a Mon Sep 17 00:00:00 2001
|
|
From: redzic <48274562+redzic@users.noreply.github.com>
|
|
Date: Thu, 29 Sep 2022 15:17:00 -0500
|
|
Subject: [PATCH] Fix UB in pred_max test
|
|
|
|
---
|
|
src/predict.rs | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/src/predict.rs b/src/predict.rs
|
|
index 85cdd69abb..75140830db 100644
|
|
--- a/src/predict.rs
|
|
+++ b/src/predict.rs
|
|
@@ -1558,8 +1558,7 @@ mod test {
|
|
}
|
|
}
|
|
|
|
- // SAFETY: ???
|
|
- let above_left = unsafe { *above.as_ptr().offset(-1) };
|
|
+ let above_left = max12bit;
|
|
|
|
pred_paeth(
|
|
&mut o.as_region_mut(),
|