[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-381-g491586b
by Justus Winter
cvs at cvs.gnupg.org
Thu Apr 14 16:36:27 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 "The GNU crypto library".
The branch, master has been updated
via 491586bc7f7b9edc6b78331a77e653543983c9e4 (commit)
from 47c6a1f88eb763e9baa394e34d873b761abcebbe (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 491586bc7f7b9edc6b78331a77e653543983c9e4
Author: Justus Winter <justus at g10code.com>
Date: Thu Apr 14 13:53:55 2016 +0200
src: Improve S-expression parsing.
* src/sexp.c (do_vsexp_sscan): Return an error if a closing
parenthesis is encountered with no matching opening parenthesis.
Signed-off-by: Justus Winter <justus at g10code.com>
diff --git a/src/sexp.c b/src/sexp.c
index 636f922..6077bab 100644
--- a/src/sexp.c
+++ b/src/sexp.c
@@ -1592,6 +1592,13 @@ do_vsexp_sscan (gcry_sexp_t *retsexp, size_t *erroff,
err = GPG_ERR_SEXP_UNMATCHED_DH;
goto leave;
}
+
+ if (level == 0)
+ {
+ *erroff = p - buffer;
+ err = GPG_ERR_SEXP_UNMATCHED_PAREN;
+ goto leave;
+ }
MAKE_SPACE (0);
*c.pos++ = ST_CLOSE;
level--;
-----------------------------------------------------------------------
Summary of changes:
src/sexp.c | 7 +++++++
1 file changed, 7 insertions(+)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
More information about the Gcrypt-devel
mailing list