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

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

parents ac0681a5 d846a572
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2902,6 +2902,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;