svn commit: r309455 - stable/11/sys/fs/ext2fs
Pedro F. Giffuni
pfg at FreeBSD.org
Sat Dec 3 00:43:12 UTC 2016
Author: pfg
Date: Sat Dec 3 00:43:11 2016
New Revision: 309455
URL: https://svnweb.freebsd.org/changeset/base/309455
Log:
MFC r309179:
ext2fs: avoid possible overflow when calculating malloc size.
This is inspired on r308064 for the case of mounting UFS.
Modified:
stable/11/sys/fs/ext2fs/ext2_vfsops.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/fs/ext2fs/ext2_vfsops.c
==============================================================================
--- stable/11/sys/fs/ext2fs/ext2_vfsops.c Sat Dec 3 00:40:08 2016 (r309454)
+++ stable/11/sys/fs/ext2fs/ext2_vfsops.c Sat Dec 3 00:43:11 2016 (r309455)
@@ -537,7 +537,8 @@ ext2_mountfs(struct vnode *devvp, struct
struct csum *sump;
int error;
int ronly;
- int i, size;
+ int i;
+ u_long size;
int32_t *lp;
int32_t e2fs_maxcontig;
More information about the svn-src-stable-11
mailing list