git: c910e015ba8b - stable/13 - Correct assert added to dump program.

Kirk McKusick mckusick at FreeBSD.org
Thu May 20 22:54:26 UTC 2021


The branch stable/13 has been updated by mckusick:

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

commit c910e015ba8b88bb3dd853f72fb8eeb87dfb9309
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 22:57:37 +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 d094a08a7eb0..3630d2240f58 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