mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Avoid overflow.
Submitted by: bde@
This commit is contained in:
parent
307d88b787
commit
77dda2b96f
1 changed files with 1 additions and 1 deletions
|
|
@ -1348,7 +1348,7 @@ vn_rlimit_fsize(const struct vnode *vp, const struct uio *uio,
|
|||
if (vp->v_type != VREG || td == NULL)
|
||||
return (0);
|
||||
PROC_LOCK(td->td_proc);
|
||||
if (uio->uio_offset + uio->uio_resid >
|
||||
if ((uoff_t)uio->uio_offset + uio->uio_resid >
|
||||
lim_cur(td->td_proc, RLIMIT_FSIZE)) {
|
||||
psignal(td->td_proc, SIGXFSZ);
|
||||
PROC_UNLOCK(td->td_proc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue