From cb8fc656fdc69a5ede404dc42f644f6d774dda5e Mon Sep 17 00:00:00 2001 From: reviewher <24845478+reviewher@users.noreply.github.com> Date: Sat, 16 Oct 2021 16:07:27 -0400 Subject: [PATCH] CFB Fix [ci skip] --- bits/18_cfb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/18_cfb.js b/bits/18_cfb.js index 61b8b78..c82bd31 100644 --- a/bits/18_cfb.js +++ b/bits/18_cfb.js @@ -441,7 +441,7 @@ function sleuth_fat(idx/*:number*/, cnt/*:number*/, sectors/*:Array*/, if((q = __readInt32LE(sector,i*4)) === ENDOFCHAIN) break; fat_addrs.push(q); } - sleuth_fat(__readInt32LE(sector,ssz-4),cnt - 1, sectors, ssz, fat_addrs); + if(cnt >= 1) sleuth_fat(__readInt32LE(sector,ssz-4),cnt - 1, sectors, ssz, fat_addrs); } }