| ID | NOT A BUG - See the "Comment" tab for more info | Creation Date | Mar 24, 2008 |
| Platform | S60 3rd Edition FP2 Beta | Devices | emulator |
| Category | Multimedia | Subcategory | EXIF API; |
Calling CExifRead::GetExifVersion(TUint32& aExifVersion) on the image found at http://wiki.forum.nokia.com/images/d/dc/Test_KErrNoMemory.jpg produces incorrect values.
Instead of filling the argument with the correct decimal value 0220, as reported if the same file is viewed with Photoshop, the call to this function will fill the argument with 0x30323230, which is the ASCII representation of "0220". This violates the API spec, as defined by the docs, because it doesn't produce a valid TUint32 result.
A similar issue is for GetFlashPixVersion.
Also, calling GetTagIdsL on that file indicates that a "maker note" field is present in the file, although that's not shown by Photoshop. If the value of that field is fetched using CExifRead::GetMakerNoteL, it returns an HBufC8 pointing to 2480 bytes of garbage.
Sample code that reproduces the problem:
...
TUint32 version;
User::LeaveIfError(reader.GetExifVersion(version));
...
No related wiki articles found