[jhead/f14/master] - added patch to fix "[abrt] jhead-2.90-1.fc14: ClearOrientation" (#655727)

Adrian Reber adrian at fedoraproject.org
Tue Nov 30 12:08:27 UTC 2010


commit a49b41dc591eb96a2c53ad0c79e9f7bc7edaa191
Author: Adrian Reber <adrian at lisas.de>
Date:   Tue Nov 30 13:08:27 2010 +0100

    - added patch to fix "[abrt] jhead-2.90-1.fc14: ClearOrientation" (#655727)

 jhead-orientation-crash.patch |   11 +++++++++++
 jhead.spec                    |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/jhead-orientation-crash.patch b/jhead-orientation-crash.patch
new file mode 100644
index 0000000..f3f91c1
--- /dev/null
+++ b/jhead-orientation-crash.patch
@@ -0,0 +1,11 @@
+--- exif.c.org	2010-11-30 12:46:30.771329941 +0100
++++ exif.c	2010-11-30 12:46:33.442498648 +0100
+@@ -1222,7 +1222,7 @@
+ 
+             case FMT_ULONG:     
+             case FMT_SLONG:     
+-                memset(OrientationPtr, 0, 4);
++                memset(OrientationPtr[a], 0, 4);
+                 // Can't be bothered to write  generic Put32 if I only use it once.
+                 if (MotorolaOrder){
+                     ((uchar *)OrientationPtr[a])[3] = 1;
diff --git a/jhead.spec b/jhead.spec
index 85c99d6..8ad76df 100644
--- a/jhead.spec
+++ b/jhead.spec
@@ -1,12 +1,13 @@
 Name: jhead
 Version: 2.90
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Tool for displaying EXIF data embedded in JPEG images
 Group: Applications/Multimedia
 License: Public Domain
 URL: http://www.sentex.net/~mwandel/jhead/
 Source0: http://www.sentex.net/~mwandel/jhead/jhead-2.90.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: jhead-orientation-crash.patch
 
 %description
 Jhead displays and manipulates the non-image portions of EXIF formatted
@@ -14,6 +15,7 @@ JPEG images, such as the images produced by most digital cameras.
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
 make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
@@ -35,6 +37,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man?/*
 
 %changelog
+* Tue Nov 30 2010 Adrian Reber <adrian at lisas.de> - 2.90-2
+- added patch to fix "[abrt] jhead-2.90-1.fc14: ClearOrientation" (#655727)
+
 * Wed Aug 04 2010 Adrian Reber <adrian at lisas.de> - 2.90-1
 - updated to 2.90
 


More information about the scm-commits mailing list