mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
2667 added returns when substr is not defined to menuorder RegRipper module
This commit is contained in:
parent
7255746fe5
commit
a202f2fa18
4
thirdparty/rr-full/plugins/menuorder.pl
vendored
4
thirdparty/rr-full/plugins/menuorder.pl
vendored
@ -167,6 +167,7 @@ sub parseAugM {
|
||||
my $str = "";
|
||||
while($tag) {
|
||||
my $s = substr($data,0x16 + $cnt,1);
|
||||
return %item unless (defined $s);
|
||||
if ($s =~ m/\x00/ && ((($cnt + 1) % 2) == 0)) {
|
||||
$tag = 0;
|
||||
}
|
||||
@ -197,6 +198,7 @@ sub parseAugM {
|
||||
$str = "";
|
||||
while ($tag) {
|
||||
my $s = substr($data2,$ofs + $cnt,2);
|
||||
return %item unless (defined $s);
|
||||
if (unpack("v",$s) == 0) {
|
||||
$tag = 0;
|
||||
}
|
||||
@ -241,6 +243,7 @@ sub parseItem {
|
||||
my $str = "";
|
||||
while($tag) {
|
||||
my $s = substr($data,$ofs + $cnt,1);
|
||||
return %item unless (defined $s);
|
||||
if ($s =~ m/\x00/ && ((($cnt + 1) % 2) == 0)) {
|
||||
$tag = 0;
|
||||
}
|
||||
@ -285,6 +288,7 @@ sub parseItem {
|
||||
$str = "";
|
||||
while ($tag) {
|
||||
my $s = substr($data2,$ofs + $cnt,2);
|
||||
return %item unless (defined $s);
|
||||
if (unpack("v",$s) == 0) {
|
||||
$tag = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user