[git] GnuPG - branch, 1.4, created. gnupg-1.4.11-14-gd64aa7b
by David Shaw
cvs at cvs.gnupg.org
Wed Apr 6 06:06:24 CEST 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, 1.4 has been created
at d64aa7b37e840d973ff1c92b9fd27d8448cfcc5d (commit)
- Log -----------------------------------------------------------------
commit d64aa7b37e840d973ff1c92b9fd27d8448cfcc5d
Author: David Shaw <dshaw at jabberwocky.com>
Date: Tue Apr 5 23:27:50 2011 -0400
* photoid.c (generate_photo_id): Check for the JPEG magic numbers
instead of JFIF since some programs generate an EXIF header first.
This is issue 1331.
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 8479663..19db8a4 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-05 David Shaw <dshaw at jabberwocky.com>
+
+ * photoid.c (generate_photo_id): Check for the JPEG magic numbers
+ instead of JFIF since some programs generate an EXIF header first.
+ This is issue 1331.
+
2011-02-23 Werner Koch <wk at g10code.com>
* Makefile.am (LDADD): Move LIBREADLINE to ..
diff --git a/g10/photoid.c b/g10/photoid.c
index 727a9ff..30c8f7f 100644
--- a/g10/photoid.c
+++ b/g10/photoid.c
@@ -1,5 +1,5 @@
/* photoid.c - photo ID handling code
- * Copyright (C) 2001, 2002, 2005, 2006, 2008 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002, 2005, 2006, 2008, 2011 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -139,8 +139,7 @@ generate_photo_id(PKT_public_key *pk,const char *photo_name)
iobuf_close(file);
/* Is it a JPEG? */
- if(photo[0]!=0xFF || photo[1]!=0xD8 ||
- photo[6]!='J' || photo[7]!='F' || photo[8]!='I' || photo[9]!='F')
+ if(photo[0]!=0xFF || photo[1]!=0xD8)
{
log_error(_("`%s' is not a JPEG file\n"),filename);
xfree(photo);
-----------------------------------------------------------------------
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list