[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_4-11-gaab0f6e
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_4-11-gaab0f6e |
Date: |
Fri, 28 Mar 2014 13:49:10 +0000 |
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 "GNU libtasn1".
http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=aab0f6e3941ca6c175a1ebc4dde245fa730dd5b8
The branch, master has been updated
via aab0f6e3941ca6c175a1ebc4dde245fa730dd5b8 (commit)
from 960d3dbed1c332c4a978004b2899cbe3e7bc7904 (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 aab0f6e3941ca6c175a1ebc4dde245fa730dd5b8
Author: Jean-Louis Thekekara <address@hidden>
Date: Tue Mar 25 17:15:58 2014 +0100
asn1_write_value: fix segfault when deleting an unauthorized element
Segfaults can occur, since value is dereferenced later, ex:
352 if ((isdigit (value[0])) || (value[0] == '-')
Signed-off-by: Nikos Mavrogiannopoulos <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
lib/element.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/lib/element.c b/lib/element.c
index 3e26d84..ee77feb 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -303,6 +303,12 @@ asn1_write_value (asn1_node node_root, const char *name,
return ASN1_SUCCESS;
}
+ /* Don't allow element deletion for other types */
+ if (value == NULL)
+ {
+ return ASN1_VALUE_NOT_VALID;
+ }
+
switch (type)
{
case ASN1_ETYPE_BOOLEAN:
hooks/post-receive
--
GNU libtasn1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_4-11-gaab0f6e,
Nikos Mavrogiannopoulos <=