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 :
3rdparty/portaudio/src/hostapi/wmme/pa_win_wmme.c
Enclosing Function :ProcessingThreadProc@4
https://github.com/sagarpant1/mame/blob/fe529afa8e0669d323dec9e3a575efc399009e5c/3rdparty/portaudio/src/hostapi/wmme/pa_win_wmme.c#L3028 Issue in: write position, frames in buffer ringCode extract:
How can I fix it? Correct reference usage found in
3rdparty/portaudio/src/hostapi/wmme/pa_win_wmme.c
at line3031
. https://github.com/sagarpant1/mame/blob/fe529afa8e0669d323dec9e3a575efc399009e5c/3rdparty/portaudio/src/hostapi/wmme/pa_win_wmme.c#L3031 Code extract: