[git] GpgOL - branch, master, updated. gpgol-1.2.0-8-geb1b9bf

by Werner Koch cvs at cvs.gnupg.org
Fri Apr 10 08:40:54 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 "GnuPG extension for MS Outlook".

The branch, master has been updated
       via  eb1b9bfc088ce33c398dd6f6b7bf80797fbb9011 (commit)
      from  35e68591863b7da1698ddc24d8f035fc4c382b9a (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 eb1b9bfc088ce33c398dd6f6b7bf80797fbb9011
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Apr 10 08:39:25 2015 +0200

    Fix last commit (35e6859)
    
    * src/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>
    
    (backported from gnupg 2.1
     commit 9433661419043431a6cfc7d84c8450e0b2f6c353)

diff --git a/src/rfc822parse.c b/src/rfc822parse.c
index 7f643b8..760e8f7 100644
--- a/src/rfc822parse.c
+++ b/src/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:
 src/rfc822parse.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG extension for MS Outlook
http://git.gnupg.org




More information about the Gnupg-commits mailing list