Random string is returned as a value for an EXIF tag not present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libexif-ruby (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Some JPG files does not have certain EXIF information. For EXIF tags that does not exist, Exif#[] seems to be expected to return nil. Instead, a random string is returned:
$ irb1.8
irb(main):001:0> require 'exif'
=> true
irb(main):002:0> Exif.new(
=> "\334+6\
irb(main):003:0> Exif.new(
=> "2012:09:14 19:44:43"
$ irb1.9.1 -I /usr/lib/
irb(main):001:0> require 'exif'
=> true
irb(main):002:0> Exif.new(
=> "p\xE4V\
irb(main):003:0> Exif.new(
=> "2012:09:14 19:44:43"
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libexif-ruby 0.1.2-15
ProcVersionSign
Uname: Linux 3.2.0-26-
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
Date: Fri Sep 21 19:44:18 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: libexif-ruby
UpgradeStatus: No upgrade log present (probably fresh install)
The attachment "A patch that seems to fix the problem" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]