[git] GPG-ERROR - branch, master, updated. libgpg-error-1.23-5-g467ccbb

by Werner Koch cvs at cvs.gnupg.org
Mon Jun 27 10:59:15 CEST 2016


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 "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  467ccbb6062439eda9dce7cd991934d1a5491713 (commit)
      from  7213299fdb2293b974fc436686626ae0a29290b8 (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 467ccbb6062439eda9dce7cd991934d1a5491713
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Jun 27 10:57:26 2016 +0200

    estream: Fix bug es_fclose_snatch if a seek has been used.
    
    * src/estream.c (func_mem_ioctl): Set LEN from DATA_LEN.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/estream.c b/src/estream.c
index 2a44ac3..4352df5 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -890,7 +890,7 @@ func_mem_ioctl (void *cookie, int cmd, void *ptr, size_t *len)
       /* Return the internal buffer of the stream to the caller and
          invalidate it for the stream.  */
       *(void**)ptr = mem_cookie->memory;
-      *len = mem_cookie->offset;
+      *len = mem_cookie->data_len;
       mem_cookie->memory = NULL;
       mem_cookie->memory_size = 0;
       mem_cookie->offset = 0;

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

Summary of changes:
 src/estream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org




More information about the Gnupg-commits mailing list