Branch Coverage

blib/lib/Image/ExifTool/RSRC.pm
Criterion Covered Total %
branch 28 76 36.8


line true false branch
73 1 1 unless $raf
76 0 2 unless $raf->Read($hdr, 30) == 30
78 0 2 unless $raf->Seek(0, 2)
80 0 2 if $datOff < 16 or $datOff + $datLen > $fLen
81 0 2 if $mapOff < 16 or $mapOff + $mapLen > $fLen or $mapLen < 30
82 0 2 if $datOff < $mapOff and $datOff + $datLen > $mapOff
83 0 2 if $mapOff < $datOff and $mapOff + $mapLen > $datOff
86 0 2 unless $raf->Seek($mapOff, 0) and $raf->Read($map, $mapLen) == $mapLen
93 0 2 if $typeOff < 28 or $nameOff < 30
95 2 0 unless $et->{'IN_RESOURCE'}
103 0 2 if $off + 8 > $mapLen
110 0 2 if $roff + 12 > $mapLen
117 1 1 if ($tagInfo) { }
124 2 0 if ($tagInfo or $verbose)
125 0 2 unless ($raf->Seek($resOff, 0) and $raf->Read($buff, 4) == 4 and ($valLen = unpack("N", $buff)) < 100000000 and $raf->Read($val, $valLen) == $valLen)
133 0 2 if ($verbose)
135 0 0 unless $raf->Seek($resNameOff, 0) and $raf->Read($buff, 1) and ($nameLen = ord $buff) != 0 and $raf->Read($resName, $nameLen) == $nameLen
141 0 2 unless $tagInfo
142 1 1 if ($resType eq 'vers') { }
1 0 elsif ($resType eq 'sfnt') { }
0 0 elsif ($resType eq '8BIM') { }
0 0 elsif ($resType eq 'STR ' and $valLen > 1) { }
0 0 elsif ($resType eq 'usro' and $valLen > 4) { }
0 0 elsif ($resType eq 'STR#' and $valLen > 2) { }
0 0 elsif ($resType eq 'POST') { }
0 0 elsif ($resType ne 'TEXT') { }
144 0 1 unless $valLen > 8
147 0 1 if $p >= $valLen
149 0 1 if $p + $vlen > $valLen
154 0 1 unless $raf->Seek($resOff + 4, 0)
157 0 1 unless (&Image::ExifTool::Font::ProcessOTF($et, $dirInfo))
161 1 0 unless $et->{'DOC_NUM'}
176 0 0 unless $valLen >= $len + 1
180 0 0 unless $valLen >= $len + 4
185 0 0 if $num & 61440
189 0 0 if $pos >= $valLen
191 0 0 if $pos + $len > $valLen
198 0 0 unless $et->{'DOC_NUM'}