- Timestamp:
- Jul 28, 2010, 10:48:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/JpegMetaData/Readers/IfdReader.class.php
r5222 r6722 107 107 $this->dataOffset=$offset; 108 108 109 109 110 $this->skipHeader($this->headerSize); 110 111 112 113 111 114 $dataPointer = $this->data->offset(); 115 112 116 /* 113 117 * number of entries is defined byte an UShort at the begining of the … … 422 426 * the returned value is a parsed sub IFD 423 427 */ 424 $returned=new IfdReader($this->data->readASCII(-1,$values-$this->dataOffset), $values, $this->byteOrder); 428 if($values>$this->dataOffset) 429 { 430 $returned=new IfdReader($this->data->readASCII(-1,$values-$this->dataOffset), $values, $this->byteOrder); 431 } 432 else 433 { 434 /* ELSE implemented with the mantis bug:1686 435 * when the offset of a sub IFD tag is lower than the offset of the 436 * current IFD, ignore the sub IFD 437 * 438 * A method have to be coded to manage this kind of sub IFD 439 */ 440 $returned="Feature not implemented: read negative offset"; 441 } 425 442 break; 426 443 case 0x8825: // GPS IFD Pointer, tag 0x8825
Note: See TracChangeset
for help on using the changeset viewer.