Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
db926357
Commit
db926357
authored
Oct 26, 2016
by
Sarah Parker
Committed by
James Zern
Nov 04, 2016
Browse files
warped_motion: Fix ubsan warning for signed integer overflow
Change-Id: Ie698aa02ef56128759c71079e9bfa1af25149644
parent
565f788d
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/warped_motion.c
View file @
db926357
...
...
@@ -215,7 +215,7 @@ static int32_t do_cubic_filter(int32_t *p, int x) {
}
else
if
(
x
==
(
1
<<
WARPEDPIXEL_PREC_BITS
))
{
return
p
[
1
];
}
else
{
const
int64_t
v1
=
x
*
x
*
x
*
(
3
*
(
p
[
0
]
-
p
[
1
])
+
p
[
2
]
-
p
[
-
1
]);
const
int64_t
v1
=
(
int64_t
)
x
*
x
*
x
*
(
3
*
(
p
[
0
]
-
p
[
1
])
+
p
[
2
]
-
p
[
-
1
]);
const
int64_t
v2
=
x
*
x
*
(
2
*
p
[
-
1
]
-
5
*
p
[
0
]
+
4
*
p
[
1
]
-
p
[
2
]);
const
int64_t
v3
=
x
*
(
p
[
1
]
-
p
[
-
1
]);
const
int64_t
v4
=
2
*
p
[
0
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment