The branch stable/12 has been updated by mckusick:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8ab4e1b951228f2a1ade693f72339b4c483afe26

commit 8ab4e1b951228f2a1ade693f72339b4c483afe26
Author:     Kirk McKusick <[email protected]>
AuthorDate: 2021-05-17 23:33:59 +0000
Commit:     Kirk McKusick <[email protected]>
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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to