Skip to content
Commit 32789e55 authored by Aditya Chopra's avatar Aditya Chopra Committed by Benjamin Cabé
Browse files

drivers: sensor: paj7620: Fix potential integer overflow in driver



Fix Coverity issue CID 524766: A potential integer overflow could occur
in paj7620_set_sampling_rate() due to multiplication of
sensor_value->val1 instance(which is of type int32_t) with 1000000
without typecasting it to int64_t.

Fixes #90482

Signed-off-by: default avatarAditya Chopra <adityachopra2912@gmail.com>
parent 89d1c526
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment