mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-23 01:14:56 +00:00
Error return values are supposed to be negative in hdpvr_read. Most
error returns are currently handled via an unsigned integer "ret". When
setting a negative error value to "ret", the value actually becomes a
large positive value, because "ret" is unsigned. Later on, the "ret"
value is returned. But as ssize_t is a 64-bit signed number, the error
return value stays a large positive integer instead of a negative
integer. This can cause an error value to be interpreted as the read
size, which can cause a buffer overread for applications relying on the
returned size.
Fixes:
|
||
|---|---|---|
| .. | ||
| hdpvr-control.c | ||
| hdpvr-core.c | ||
| hdpvr-i2c.c | ||
| hdpvr-video.c | ||
| hdpvr.h | ||
| Kconfig | ||
| Makefile | ||