Skip to content

Commit

Permalink
MFC: r344755:
Browse files Browse the repository at this point in the history
Fix integer overflow possibility.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-2-EXT2-1: Out-of-Bounds Write in nmount (ext2_vget)
Reviewed by:    pfg

Differential Revision:    https://reviews.freebsd.org/D19326
  • Loading branch information
fsu authored and fsu committed Mar 18, 2019
1 parent 28329d4 commit 66bedc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/fs/ext2fs/ext2_vfsops.c
Expand Up @@ -1156,8 +1156,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);
Expand Down

0 comments on commit 66bedc8

Please sign in to comment.