git: 8ab4e1b95122 - stable/12 - Correct assert added to dump program.
Kirk McKusick
mckusick at FreeBSD.org
Thu May 20 22:57:34 UTC 2021
The branch stable/12 has been updated by mckusick:
URL: https://cgit.FreeBSD.org/src/commit/?id=8ab4e1b951228f2a1ade693f72339b4c483afe26
commit 8ab4e1b951228f2a1ade693f72339b4c483afe26
Author: Kirk McKusick <mckusick at FreeBSD.org>
AuthorDate: 2021-05-17 23:33:59 +0000
Commit: Kirk McKusick <mckusick at FreeBSD.org>
CommitDate: 2021-05-20 23:00:57 +0000
Correct assert added to dump program.
(cherry picked from commit efe145a7453e4208f032816ce3f80e9fb6b0e4ee)
---
sbin/dump/traverse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 46f7e8a854a8..eb264306dce7 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -756,7 +756,7 @@ appendextdata(union dinode *dp)
* data by the writeextdata() routine.
*/
tbperdb = sblock->fs_bsize >> tp_bshift;
- assert(spcl.c_count + blks < TP_NINDIR);
+ assert(spcl.c_count + blks <= TP_NINDIR);
for (i = 0; i < blks; i++)
if (&dp->dp2.di_extb[i / tbperdb] != 0)
spcl.c_addr[spcl.c_count + i] = 1;
More information about the dev-commits-src-all
mailing list