SCCS-vsn: libexec/lfs_cleanerd/library.c 5.7
-static char sccsid[] = "@(#)library.c 5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)library.c 5.7 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
u_long *datap;
SEGUSE *sup;
u_long *datap;
SEGUSE *sup;
- if ((nblocks = dump_summary(&fsp->fi_lfs, ssp, 0, NULL)) <= 0)
+ if ((nblocks = dump_summary(&fsp->fi_lfs, ssp, 0, NULL)) <= 0 ||
+ nblocks > fsp->fi_lfs.lfs_ssize - 1)
return(0);
/* check data/inode block(s) checksum too */
return(0);
/* check data/inode block(s) checksum too */