diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-17 09:05:15 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-17 09:05:15 +0200 |
commit | c29e85f9a9ed0e6780a55891c0af77c0ead137d3 (patch) | |
tree | 1f806017e5ad38dd1c261e8280ff061d630ae706 /lib/decoding.c | |
parent | cd9876aafe51081022f39407201d83a954750aa5 (diff) | |
download | libtasn1-c29e85f9a9ed0e6780a55891c0af77c0ead137d3.tar.gz libtasn1-c29e85f9a9ed0e6780a55891c0af77c0ead137d3.tar.bz2 libtasn1-c29e85f9a9ed0e6780a55891c0af77c0ead137d3.zip |
Revert "made _asn1_ltostr() safer."
This reverts commit 07a5adb87880f3fce80aa12121409bbf652f1b6d.
Diffstat (limited to 'lib/decoding.c')
-rw-r--r-- | lib/decoding.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/decoding.c b/lib/decoding.c index bd96d90..f85451f 100644 --- a/lib/decoding.c +++ b/lib/decoding.c @@ -320,9 +320,9 @@ _asn1_get_objectid_der (const unsigned char *der, int der_len, int *ret_len, val1 = der[len_len] / 40; val = der[len_len] - val1 * 40; - _asn1_str_cpy (str, str_size, _asn1_ltostr (val1, temp, sizeof(temp))); + _asn1_str_cpy (str, str_size, _asn1_ltostr (val1, temp)); _asn1_str_cat (str, str_size, "."); - _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp, sizeof(temp))); + _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp)); val = 0; leading = 1; @@ -344,7 +344,7 @@ _asn1_get_objectid_der (const unsigned char *der, int der_len, int *ret_len, if (!(der[len_len + k] & 0x80)) { _asn1_str_cat (str, str_size, "."); - _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp, sizeof(temp))); + _asn1_str_cat (str, str_size, _asn1_ltostr (val, temp)); val = 0; leading = 1; } @@ -1251,7 +1251,7 @@ asn1_der_decoding (asn1_node * element, const void *ider, int ider_len, if (len3 > 0) { - _asn1_ltostr (counter + len3, temp, sizeof(temp)); + _asn1_ltostr (counter + len3, temp); tlen = strlen (temp); if (tlen > 0) _asn1_set_value (p, temp, tlen + 1); @@ -1339,7 +1339,7 @@ asn1_der_decoding (asn1_node * element, const void *ider, int ider_len, { if (len3 > 0) { /* definite length method */ - _asn1_ltostr (counter + len3, temp, sizeof(temp)); + _asn1_ltostr (counter + len3, temp); tlen = strlen (temp); if (tlen > 0) |