diff options
author | sangsu <sangsu.choi@samsung.com> | 2016-06-08 10:17:41 +0900 |
---|---|---|
committer | sangsu <sangsu.choi@samsung.com> | 2016-06-08 10:18:15 +0900 |
commit | a39386a3afe2d7e0cc717a49f970f53d974fda53 (patch) | |
tree | d6deb781410d96006a58fcfcaa8f31ffcc139523 /lib/parser_aux.h | |
parent | d2521ee04e00e1c060001d5d67c1cf0bd23ec260 (diff) | |
download | libtasn1-a39386a3afe2d7e0cc717a49f970f53d974fda53.tar.gz libtasn1-a39386a3afe2d7e0cc717a49f970f53d974fda53.tar.bz2 libtasn1-a39386a3afe2d7e0cc717a49f970f53d974fda53.zip |
Imported Upstream version 4.8upstream/4.8submit/upstream/20160613.071414
Change-Id: I25e57ece28b9ebb637a2b7356f57e11b7f2eb807
Signed-off-by: sangsu <sangsu.choi@samsung.com>
Diffstat (limited to 'lib/parser_aux.h')
-rw-r--r-- | lib/parser_aux.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/lib/parser_aux.h b/lib/parser_aux.h index 55d9061..10b864b 100644 --- a/lib/parser_aux.h +++ b/lib/parser_aux.h @@ -52,19 +52,12 @@ void _asn1_delete_list (void); void _asn1_delete_list_and_nodes (void); -#define LTOSTR_MAX_SIZE 20 -char *_asn1_ltostr (long v, char *str); +/* 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]); asn1_node _asn1_find_up (asn1_node node); -inline static asn1_node _asn1_get_up(asn1_node node) -{ - if (node && node->up) - return node->up; - else - return _asn1_find_up(node); -} - int _asn1_change_integer_value (asn1_node node); int _asn1_expand_object_id (asn1_node node); @@ -107,10 +100,7 @@ _asn1_set_down (asn1_node node, asn1_node down) return node; node->down = down; if (down) - { - down->left = node; - down->up = node; - } + down->left = node; return node; } |