blib/lib/Image/ExifTool/ICC_Profile.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 84 | 34.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
934 | 660 | 0 | 0 | $type eq "clro" and $size >= 12 |
942 | 660 | 0 | 0 | $type eq "data" and $size >= 12 |
949 | 660 | 0 | 0 | $type eq "dtim" and $size >= 20 |
960 | 640 | 0 | 20 | $type eq "sig " and $size >= 12 |
966 | 466 | 0 | 117 | $type eq "desc" and $size >= 12 |
1037 | 0 | 0 | 0 | $namePtr and $valuePtr |
1073 | 0 | 0 | 0 | $raf->Read($buff, 24) and &ValidateICC(\$buff) |
1076 | 0 | 0 | 0 | defined $buff and length $buff |
1173 | 39 | 19 | 4 | $et->{'TAGS_FROM_FILE'} && !$et->{'EXCL_TAG_LOOKUP'}{'icc_profile'} || $et->{'REQ_TAG_LOOKUP'}{'icc_profile'} and !$dirInfo->{'Name'} || $dirInfo->{'Name'} eq 'ICC_Profile' |
1229 | 700 | 0 | 0 | not $tagInfo and $et->{'OPTIONS'}{'Unknown'} || $verbose |
1247 | 700 | 0 | 0 | $fmt eq "mluc" and not $subdir |
1259 | 0 | 0 | 0 | $lang =~ s/^([a-z]{2})([A-Z]{2})$/\L$1-\E\U$2\E/i and $lang ne "en-US" |
1319 | 0 | 40 | 0 | defined $subdir->{'Validate'} and not eval $subdir->{'Validate'} |
line | l | !l | condition |
---|---|---|---|
1094 | 9 | 0 | $dirInfo->{'DirName'} || 'ICC_Profile' |
1166 | 6 | 56 | $dirInfo->{'DirStart'} || 0 |
1204 | 0 | 57 | $et->{'DIR_COUNT'}{'ICC'} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
1015 | 0 | 0 | 0 | $dirLen < 16 or substr($$dataPt, $dirStart, 4) ne "dict" |
1038 | 0 | 0 | 0 | $namePtr < $minPtr or $namePtr + $nameLen > $dirLen |
0 | 0 | 0 | $namePtr < $minPtr or $namePtr + $nameLen > $dirLen or $valuePtr < $minPtr | |
0 | 0 | 0 | $namePtr < $minPtr or $namePtr + $nameLen > $dirLen or $valuePtr < $minPtr or $valuePtr + $valueLen > $dirLen | |
1138 | 0 | 0 | 1 | $size < 128 or $size & 2147483648 |
1173 | 15 | 8 | 39 | $et->{'TAGS_FROM_FILE'} && !$et->{'EXCL_TAG_LOOKUP'}{'icc_profile'} || $et->{'REQ_TAG_LOOKUP'}{'icc_profile'} |
15 | 4 | 4 | !$dirInfo->{'Name'} || $dirInfo->{'Name'} eq 'ICC_Profile' | |
1185 | 5 | 0 | 57 | $len != $dirLen or $len < 128 |
1187 | 5 | 0 | 0 | $len < 128 or $dirLen < $len |
1191 | 0 | 0 | 57 | $numEntries < 1 or $numEntries >= 256 |
0 | 0 | 57 | $numEntries < 1 or $numEntries >= 256 or $numEntries * 12 + 132 > $dirLen | |
1229 | 0 | 0 | 0 | $et->{'OPTIONS'}{'Unknown'} || $verbose |
1267 | 0 | 0 | 0 | $langInfo || $tagInfo |