[git] GnuPG - branch, master, updated. gnupg-2.1.2-90-g9433661

by Werner Koch cvs at cvs.gnupg.org
Fri Apr 10 08:36:59 CEST 2015


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, master has been updated
       via  9433661419043431a6cfc7d84c8450e0b2f6c353 (commit)
      from  3f2bdac2f28e3cd31e2ecfc83573e91dff18c982 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9433661419043431a6cfc7d84c8450e0b2f6c353
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Apr 10 08:34:35 2015 +0200

    gpgparsemail: Fix last commit (3f2bdac)
    
    * tools/rfc822parse.c (parse_field): Replace break by goto.
    --
    
    Brown paper bag bug: Changing an IF to a WHILE inside another loop
    requires to fix the inner break.
    
    Reported-by: Hanno Böck
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/tools/rfc822parse.c b/tools/rfc822parse.c
index e8164ce..285e084 100644
--- a/tools/rfc822parse.c
+++ b/tools/rfc822parse.c
@@ -829,7 +829,7 @@ parse_field (HDR_LINE hdr)
 	      while (!*s)
 		{
 		  if (!hdr->next || !hdr->next->cont)
-		    break;
+		    goto oparen_out;
                   /* Next item is a header continuation line.  */
 		  hdr = hdr->next;
 		  s = hdr->line;
@@ -852,6 +852,7 @@ parse_field (HDR_LINE hdr)
 	      else if (*s == '\"')
 		in_quote = 1;
 	    }
+        oparen_out:
 	  if (!*s)
 	    ; /* Actually this is an error, but we don't care about it. */
 	  else

-----------------------------------------------------------------------

Summary of changes:
 tools/rfc822parse.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list