What is a Arithmetic Overflow? When a narrow type integral value was shifted left, multiplied, added, or subtracted and the result of that arithmetic operation was cast to a wider type value. If the operation overflowed the narrow type value, then data is lost. You can prevent this loss by converting the value to a wider type before the arithmetic operation.
1 instance of this defect were found in the following locations:
What is a Arithmetic Overflow? When a narrow type integral value was shifted left, multiplied, added, or subtracted and the result of that arithmetic operation was cast to a wider type value. If the operation overflowed the narrow type value, then data is lost. You can prevent this loss by converting the value to a wider type before the arithmetic operation.
1 instance of this defect were found in the following locations:
Instance 1 File :
source/common/scaler.cpp
Enclosing Function :initFromSrc@ScalerSlice@x265
https://github.com/sagarpant1/x265/blob/f7967350cb80e0eb7417f1738a992a2bb905c457/source/common/scaler.cpp#L1076 Issue in: lum y, lum hCode extract:
How can I fix it? Correct reference usage found in
source/common/scaler.cpp
at line834
. https://github.com/sagarpant1/x265/blob/f7967350cb80e0eb7417f1738a992a2bb905c457/source/common/scaler.cpp#L834 Code extract: