diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-02-15 03:34:06 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-02-16 05:09:37 +0000 |
commit | c61fae1475f1864dc4bba667b642f279afd44855 (patch) | |
tree | c87960f55733cebfe3de23f2ea7567a1d44a968c /usr.bin/shar | |
parent | 184c1b943937986c81e1996d999d21626ec7a4ff (diff) | |
download | src-c61fae1475f1864dc4bba667b642f279afd44855.tar.gz src-c61fae1475f1864dc4bba667b642f279afd44855.zip |
pgcache read: protect against reads past end of the vm object size
If uio_offset is past end of the object size, calculated resid is negative.
Delegate handling this case to the locked read, as any other non-trivial
situation.
PR: 253158
Reported by: Harald Schmalzbauer <bugzilla.freebsd@omnilan.de>
Tested by: cy
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'usr.bin/shar')
0 files changed, 0 insertions, 0 deletions