libtasn1-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU libtasn1 branch, master, updated. libtasn1_4_8-12-gee66624


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_4_8-12-gee66624
Date: Fri, 8 Jul 2016 06:31:55 +0000 (UTC)

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=ee6662412559a06b3ec85878c617214bd045ccdd

The branch, master has been updated
       via  ee6662412559a06b3ec85878c617214bd045ccdd (commit)
       via  6bb6a1a10fdf01c618be5bde0beeb65a1c90f866 (commit)
      from  0e7337b3c074048bffb2d92cfc0a53072653ea52 (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 ee6662412559a06b3ec85878c617214bd045ccdd
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Fri Jul 8 08:31:14 2016 +0200

    .gitlab-ci.yml: added separate builds for x86 and x86_64

commit 6bb6a1a10fdf01c618be5bde0beeb65a1c90f866
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Fri Jul 8 08:29:40 2016 +0200

    encode and decode object identifiers with elements larger than 2^32 in 
32-bit systems

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

Summary of changes:
 .gitlab-ci.yml   |    9 +++++++++
 lib/coding.c     |    4 ++--
 lib/decoding.c   |    2 +-
 lib/int.h        |    6 ++++++
 lib/parser_aux.c |    4 ++--
 lib/parser_aux.h |    2 +-
 6 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e98955e..fc9b397 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,15 @@ Build and Check (x86-64):
   - git submodule update --init && make autoreconf && ./configure 
--disable-doc && make -j4 && make -j4 check
   except:
   - tags
+  tags:
+  - x86-64
+Build and Check (x86):
+  script:
+  - git submodule update --init && make autoreconf && ./configure 
--disable-doc && make -j4 && make -j4 check
+  except:
+  - tags
+  tags:
+  - x86
 Build and Check with asan:
   script:
   - git submodule update --init && make autoreconf && 
CFLAGS="-fsanitize=address -g
diff --git a/lib/coding.c b/lib/coding.c
index 66531b0..7141df7 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -337,7 +337,7 @@ _asn1_objectid_der (unsigned char *str, unsigned char *der, 
int *der_len)
   int len_len, counter, k, first, max_len;
   char *temp, *n_end, *n_start;
   unsigned char bit7;
-  unsigned long val, val1 = 0;
+  uint64_t val, val1 = 0;
   int str_len = _asn1_strlen (str);
 
   max_len = *der_len;
@@ -355,7 +355,7 @@ _asn1_objectid_der (unsigned char *str, unsigned char *der, 
int *der_len)
   while ((n_end = strchr (n_start, '.')))
     {
       *n_end = 0;
-      val = strtoul (n_start, NULL, 10);
+      val = _asn1_strtou64 (n_start, NULL, 10);
       counter++;
 
       if (counter == 1)
diff --git a/lib/decoding.c b/lib/decoding.c
index cfe2322..31c3708 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -395,7 +395,7 @@ asn1_get_object_id_der (const unsigned char *der, int 
der_len, int *ret_len,
   int len_len, len, k;
   int leading;
   char temp[LTOSTR_MAX_SIZE];
-  unsigned long val, val1;
+  uint64_t val, val1;
 
   *ret_len = 0;
   if (str && str_size > 0)
diff --git a/lib/int.h b/lib/int.h
index f1f1302..7d2eea3 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -118,6 +118,12 @@ extern const tag_and_class_st _asn1_tags[];
 #define _asn1_strcpy(a,b) strcpy((char *)a, (const char *)b)
 #define _asn1_strcat(a,b) strcat((char *)a, (const char *)b)
 
+#if SIZEOF_UNSIGNED_LONG_INT == 8
+# define _asn1_strtou64(n,e,b) strtoul((const char *) n, e, b)
+#else
+# define _asn1_strtou64(n,e,b) strtoull((const char *) n, e, b)
+#endif
+
 #define MAX_LOG_SIZE 1024      /* maximum number of characters of a log 
message */
 
 /* Define used for visiting trees. */
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 52700c6..2285b20 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -549,9 +549,9 @@ _asn1_delete_list_and_nodes (void)
 
 
 char *
-_asn1_ltostr (long v, char str[LTOSTR_MAX_SIZE])
+_asn1_ltostr (int64_t v, char str[LTOSTR_MAX_SIZE])
 {
-  long d, r;
+  int64_t d, r;
   char temp[LTOSTR_MAX_SIZE];
   int count, k, start;
 
diff --git a/lib/parser_aux.h b/lib/parser_aux.h
index 10b864b..9f91833 100644
--- a/lib/parser_aux.h
+++ b/lib/parser_aux.h
@@ -54,7 +54,7 @@ void _asn1_delete_list_and_nodes (void);
 
 /* Max 64-bit integer length is 20 chars + 1 for sign + 1 for null termination 
*/
 #define LTOSTR_MAX_SIZE 22
-char *_asn1_ltostr (long v, char str[LTOSTR_MAX_SIZE]);
+char *_asn1_ltostr (int64_t v, char str[LTOSTR_MAX_SIZE]);
 
 asn1_node _asn1_find_up (asn1_node node);
 


hooks/post-receive
-- 
GNU libtasn1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]