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

!5322 jfs: fix slab-out-of-bounds Read in dtSearch

parents 75c383f7 89558248
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -633,6 +633,11 @@ int dtSearch(struct inode *ip, struct component_name * key, ino_t * data,
		for (base = 0, lim = p->header.nextindex; lim; lim >>= 1) {
			index = base + (lim >> 1);

			if (stbl[index] < 0) {
				rc = -EIO;
				goto out;
			}

			if (p->header.flag & BT_LEAF) {
				/* uppercase leaf name to compare */
				cmp =