summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorKarina Yankevich <k.yankevich@omp.ru>2024-08-21 14:31:34 +0300
committerHans Verkuil <hverkuil@xs4all.nl>2025-03-06 19:28:27 +0300
commit3edd1fc48d2c045e8259561797c89fe78f01717e (patch)
treee6ccc23ac0de2f786ad44454f95a53660fd56767 /scripts/generate_rust_analyzer.py
parent11de3582675cc0b7136e12f3971f1da3e5a05382 (diff)
downloadlinux-3edd1fc48d2c045e8259561797c89fe78f01717e.tar.xz
media: v4l2-dv-timings: prevent possible overflow in v4l2_detect_gtf()
In v4l2_detect_gtf(), it seems safer to cast the 32-bit image_width variable to the 64-bit type u64 before multiplying to avoid a possible overflow. The resulting object code even seems to look better, at least on x86_64. Found by Linux Verification Center (linuxtesting.org) with Svace. [Sergey: rewrote the patch subject/descripition] Fixes: c9bc9f50753d ("[media] v4l2-dv-timings: fix overflow in gtf timings calculation") Cc: stable@vger.kernel.org Signed-off-by: Karina Yankevich <k.yankevich@omp.ru> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions