Skip to content
Snippets Groups Projects
Commit a174706b authored by Nihar Chaithanya's avatar Nihar Chaithanya Committed by Dave Kleikamp
Browse files

jfs: add a check to prevent array-index-out-of-bounds in dbAdjTree


When the value of lp is 0 at the beginning of the for loop, it will
become negative in the next assignment and we should bail out.

Reported-by: default avatar <syzbot+412dea214d8baa3f7483@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=412dea214d8baa3f7483


Tested-by: default avatar <syzbot+412dea214d8baa3f7483@syzkaller.appspotmail.com>
Signed-off-by: default avatarNihar Chaithanya <niharchaithanya@gmail.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent d9f9d961
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment