mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix integer overflow possibility.
Reported by: Christopher Krah <krah@protonmail.com> Reported as: FS-2-EXT2-1: Out-of-Bounds Write in nmount (ext2_vget) Reviewed by: pfg MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D19326
This commit is contained in:
parent
4ff6603ab3
commit
736da5176d
1 changed files with 2 additions and 2 deletions
|
|
@ -1163,8 +1163,8 @@ ext2_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp)
|
|||
struct buf *bp;
|
||||
struct vnode *vp;
|
||||
struct thread *td;
|
||||
int i, error;
|
||||
int used_blocks;
|
||||
unsigned int i, used_blocks;
|
||||
int error;
|
||||
|
||||
td = curthread;
|
||||
error = vfs_hash_get(mp, ino, flags, td, vpp, NULL, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue