"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "iptc.c" between
jhead-3.03.tar.gz and jhead-3.04.tar.gz

About: jhead is an Exif Jpeg header and thumbnail manipulation tool.

iptc.c  (jhead-3.03):iptc.c  (jhead-3.04)
skipping to change at line 128 skipping to change at line 128
if (pos+5 > maxpos) goto corrupt; if (pos+5 > maxpos) goto corrupt;
signature = (*pos << 8) + (*(pos+1)); signature = (*pos << 8) + (*(pos+1));
pos += 2; pos += 2;
if (signature != 0x1C01 && signature != 0x1c02) break; if (signature != 0x1C01 && signature != 0x1c02) break;
type = *pos++; type = *pos++;
length = (*pos << 8) + (*(pos+1)); length = (*pos << 8) + (*(pos+1));
if (length < 1) goto corrupt;
pos += 2; // Skip tag length pos += 2; // Skip tag length
if (pos+length > maxpos) goto corrupt; if (pos+length > maxpos) goto corrupt;
// Process tag here // Process tag here
switch (type) { switch (type) {
case IPTC_RECORD_VERSION: case IPTC_RECORD_VERSION:
printf("Record vers. : %d\n", (*pos << 8) + (*(pos+1))); printf("Record vers. : %d\n", (*pos << 8) + (*(pos+1)));
break; break;
case IPTC_SUPLEMENTAL_CATEGORIES: description = "SuplementalCategor ies"; break; case IPTC_SUPLEMENTAL_CATEGORIES: description = "SuplementalCategor ies"; break;
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)