Skip to content

Commit

Permalink
Fix a fuzzing crasher. (3a41cb1c-reproducer)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfiguiere committed Mar 2, 2015
1 parent 0b991db commit c3ba169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interpret.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ interpret_value(struct ifd_entry *entry_ptr,struct image_summary *summary_entry)
print_compression(entry_ptr->value);
break;
case TIFFTAG_PhotometricInterpretation:
print_photometric(entry_ptr->value,summary_entry->fileformat);
if (summary_entry)
{
print_photometric(entry_ptr->value,summary_entry->fileformat);
}
break;
case TIFFTAG_Orientation:
print_orientation(entry_ptr->value);
Expand Down

0 comments on commit c3ba169

Please sign in to comment.