Unverified Commit 75c383f7 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!5308 FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree

parents 1b2de997 3cd2f7fd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2928,6 +2928,9 @@ static void dbAdjTree(dmtree_t * tp, int leafno, int newval)
	/* is the current value the same as the old value ?  if so,
	 * there is nothing to do.
	 */
	if (WARN_ON_ONCE(lp >= CTLTREESIZE))
		return;

	if (tp->dmt_stree[lp] == newval)
		return;