Comment 9 for bug 942595

Revision history for this message
Hobson Lane (hobs) wrote : Re: [Bug 942595] Re: A ValueError is raised when accessing the value of a malformed MakerNote

Will do. This weekend.

On Thu, Mar 15, 2012 at 5:21 PM, Olivier Tilloy <email address hidden> wrote:

> > I like to dump the raw bytes of tags like MakerNote in a
> semi-human-readable
> > form, even when they are "undefined."
>
> Sounds like this would be a good candidate for a helper function in the
> utils module.
> If you want to submit it as a separate patch, I’ll be happy to review and
> merge it.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/942595
>
> Title:
> A ValueError is raised when accessing the value of a malformed
> MakerNote
>
> Status in pyexiv2, a python binding to exiv2:
> Confirmed
>
> Bug description:
> There are TODOs in the source code to address this bug and crude
> work-around patch is provided.
>
> If a tag value contains a single Null byte ( chr(0) ), it is
> interpreted by pyexiv2 as an "undefined" value, and attempting to read
> the value for that tag produces the error
>
> ValueError: invalid literal for int() with base 10: ''
>
> when pyexiv2 attempts to convert the string to an integer. This error
> only occured for a Canon EOS image that was processed by the Windows
> photo manager and then had its EXIF tags read and re-written by
> pyexiv2 in Ubuntu. Sample images will be provided in comments to this
> bug.
>
> known to be present in version 0.3.0 (Ubuntu distribution package) and
> version 0.3.2 (development) of pyexiv2
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pyexiv2/+bug/942595/+subscriptions
>