Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2019 12:15:58 +0000 (UTC)
From:      Fedor Uporov <fsu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r345267 - stable/12/sys/fs/ext2fs
Message-ID:  <201903181215.x2ICFwOL092497@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fsu
Date: Mon Mar 18 12:15:58 2019
New Revision: 345267
URL: https://svnweb.freebsd.org/changeset/base/345267

Log:
  MFC: r344755:
  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

Modified:
  stable/12/sys/fs/ext2fs/ext2_vfsops.c

Modified: stable/12/sys/fs/ext2fs/ext2_vfsops.c
==============================================================================
--- stable/12/sys/fs/ext2fs/ext2_vfsops.c	Mon Mar 18 12:09:10 2019	(r345266)
+++ stable/12/sys/fs/ext2fs/ext2_vfsops.c	Mon Mar 18 12:15:58 2019	(r345267)
@@ -1156,8 +1156,8 @@ ext2_vget(struct mount *mp, ino_t ino, int flags, stru
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903181215.x2ICFwOL092497>