Merge pull request #6452 from markmckinnon/7008-Regripper-Plugin-Shellactivities-has-an-infinite-loop

7008-Regripper-Plugin-Shellactivities-has-an-infinite-loop
This commit is contained in:
Richard Cordovano
2020-11-13 11:19:46 -05:00
committed by GitHub
+8 -1
View File
@@ -70,6 +70,7 @@ sub processShellActivities {
::rptMsg("");
while ($offset < ($sz - 10)) {
# Code to locate the appropriate identifier
$tag = 1;
while ($tag) {
@@ -78,9 +79,15 @@ sub processShellActivities {
}
else {
$offset++;
# Check if at end of file and exit loop if it is
last if ($offset >= $sz );
}
}
# Check if at end of file and exit loop if it is
last if ($offset >= $sz );
$offset += 2;
$l = unpack("C",substr($data,$offset,1));
# ::rptMsg("String Length: ".sprintf "0x%x",$l);