aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorFullway Wang <[email protected]>2024-01-18 14:24:43 +0800
committerHelge Deller <[email protected]>2024-01-21 09:00:14 +0100
commite421946be7d9bf545147bea8419ef8239cb7ca52 (patch)
tree281edc1f9f7a2086646371bd19275443b19273e2 /scripts/generate_rust_analyzer.py
parent04e5eac8f3ab2ff52fa191c187a46d4fdbc1e288 (diff)
fbdev: sis: Error out if pixclock equals zero
The userspace program could pass any values to the driver through ioctl() interface. If the driver doesn't check the value of pixclock, it may cause divide-by-zero error. In sisfb_check_var(), var->pixclock is used as a divisor to caculate drate before it is checked against zero. Fix this by checking it at the beginning. This is similar to CVE-2022-3061 in i740fb which was fixed by commit 15cf0b8. Signed-off-by: Fullway Wang <[email protected]> Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions