[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_1-2-gaa6e97f
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_1-2-gaa6e97f |
Date: |
Sun, 25 Nov 2012 13:16:34 +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=aa6e97f68d6c8d06f531d9b6bb462dc1c0720f77
The branch, master has been updated
via aa6e97f68d6c8d06f531d9b6bb462dc1c0720f77 (commit)
from 0ffd9af63f06998f76c6ef014fb2ebbfbe69c33a (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 aa6e97f68d6c8d06f531d9b6bb462dc1c0720f77
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Sun Nov 25 14:16:24 2012 +0100
corrected possible buffer overflow in parser errors.
-----------------------------------------------------------------------
Summary of changes:
lib/ASN1.c | 6 +++---
lib/ASN1.y | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/ASN1.c b/lib/ASN1.c
index 2a60527..df6fb64 100644
--- a/lib/ASN1.c
+++ b/lib/ASN1.c
@@ -119,7 +119,7 @@ static unsigned int line_number; /* line number
describing the
parser position inside the
file */
static char last_error[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = "";
-static char last_error_token[ASN1_MAX_NAME_SIZE+1] = ""; /* used when expected
errors occur */
+static char last_error_token[ASN1_MAX_ERROR_DESCRIPTION_SIZE+1] = ""; /* used
when expected errors occur */
static char last_token[ASN1_MAX_NAME_SIZE+1] = ""; /* last token find in the
file
to parse before the 'parse
error' */
@@ -3283,7 +3283,7 @@ _asn1_yyerror (const char *s)
strcmp (last_token, "TeletexString") == 0 ||
strcmp (last_token, "BMPString") == 0)
{
- snprintf (last_error_token, ASN1_MAX_ERROR_DESCRIPTION_SIZE,
+ snprintf (last_error_token, sizeof(last_error_token),
"%s", last_token);
fprintf(stderr,
"%s:%u: Warning: %s is a built-in ASN.1 type.\n",
@@ -3294,7 +3294,7 @@ _asn1_yyerror (const char *s)
if (result_parse != ASN1_NAME_TOO_LONG)
{
- snprintf (last_error, ASN1_MAX_ERROR_DESCRIPTION_SIZE,
+ snprintf (last_error, sizeof(last_error),
"%s:%u: Error: %s near '%s'", file_name,
line_number, s, last_token);
result_parse = ASN1_SYNTAX_ERROR;
diff --git a/lib/ASN1.y b/lib/ASN1.y
index 874eb13..e0add54 100644
--- a/lib/ASN1.y
+++ b/lib/ASN1.y
@@ -42,7 +42,7 @@ static unsigned int line_number; /* line number
describing the
parser position inside the
file */
static char last_error[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = "";
-static char last_error_token[ASN1_MAX_NAME_SIZE+1] = ""; /* used when expected
errors occur */
+static char last_error_token[ASN1_MAX_ERROR_DESCRIPTION_SIZE+1] = ""; /* used
when expected errors occur */
static char last_token[ASN1_MAX_NAME_SIZE+1] = ""; /* last token find in the
file
to parse before the 'parse
error' */
@@ -869,7 +869,7 @@ _asn1_yyerror (const char *s)
strcmp (last_token, "TeletexString") == 0 ||
strcmp (last_token, "BMPString") == 0)
{
- snprintf (last_error_token, ASN1_MAX_ERROR_DESCRIPTION_SIZE,
+ snprintf (last_error_token, sizeof(last_error_token),
"%s", last_token);
fprintf(stderr,
"%s:%u: Warning: %s is a built-in ASN.1 type.\n",
@@ -880,7 +880,7 @@ _asn1_yyerror (const char *s)
if (result_parse != ASN1_NAME_TOO_LONG)
{
- snprintf (last_error, ASN1_MAX_ERROR_DESCRIPTION_SIZE,
+ snprintf (last_error, sizeof(last_error),
"%s:%u: Error: %s near '%s'", file_name,
line_number, s, last_token);
result_parse = ASN1_SYNTAX_ERROR;
hooks/post-receive
--
GNU libtasn1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_1-2-gaa6e97f,
Nikos Mavrogiannopoulos <=