Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | coding: prevented an unsigned to signed conversion | Nikos Mavrogiannopoulos | 2016-04-20 | 1 | -1/+1 |
| | |||||
* | _asn1_expand_object_id: addressed crash when no value is present is node | Nikos Mavrogiannopoulos | 2016-04-08 | 1 | -0/+3 |
| | | | | | | | With a specially crafted ASN.1 description _asn1_expand_object_id, passes a null pointer as p4->value to the function _asn1_str_cat, which expects a pointer to a string. This patch addresses the issue. Reported by Pascal Cuoq. | ||||
* | decoding: removed redundant functions | Nikos Mavrogiannopoulos | 2016-04-08 | 1 | -223/+150 |
| | | | | | Simplified the STRING BER decoding by using asn1_decode_simple_ber(). This removes complex duplicate code. | ||||
* | asn1_decode_simple_ber: simplified and cleaned up | Nikos Mavrogiannopoulos | 2016-04-08 | 2 | -45/+73 |
| | |||||
* | asn1_get_octet_der: doc update | Nikos Mavrogiannopoulos | 2016-04-07 | 1 | -4/+6 |
| | |||||
* | _asn1_extract_der_octet: properly account the bytes read through indefinite ↵ | Nikos Mavrogiannopoulos | 2016-04-06 | 1 | -4/+8 |
| | | | | | | | encodings This prevents infinite recursions in the function loop. Reported by Pascal Cuoq. | ||||
* | libtasn1.h: updated for 4.8 | Nikos Mavrogiannopoulos | 2016-04-04 | 1 | -1/+1 |
| | |||||
* | _asn1_extract_der_octet: catch invalid input cases early | Nikos Mavrogiannopoulos | 2016-04-04 | 1 | -1/+8 |
| | | | | | | That is, check the calculated lengths for validity prior to entering a loop. This avoids an infinite recursion. Reported by Pascal Cuoq. | ||||
* | Simplify _asn1_append_value() and avoid memcpy's with zero length | Nikos Mavrogiannopoulos | 2016-04-04 | 1 | -9/+19 |
| | | | | Based on patch of Pascal Cuoq <pascal.cuoq@trust-in-soft.com> | ||||
* | use a safer variant of realloc | Nikos Mavrogiannopoulos | 2016-04-04 | 3 | -4/+20 |
| | | | | | This variant does not create memory leaks if allocation fails. Report and initial patch by Pascal Cuoq. | ||||
* | decoding: improved tail cache in _asn1_append_sequence_set | Nikos Mavrogiannopoulos | 2016-04-04 | 3 | -16/+27 |
| | | | | | We keep the head node in addition to the tail information to allow easier deduction of the validity of the cache. | ||||
* | fixed incorrect parameter to _asn1_append_sequence_set() | Nikos Mavrogiannopoulos | 2016-04-03 | 1 | -1/+1 |
| | | | | | This was uncovered by the previous revert, and seemed working due to the optimization semantics. | ||||
* | Revert "optimized _asn1_find_up()." | Nikos Mavrogiannopoulos | 2016-04-03 | 7 | -51/+38 |
| | | | | | | | This reverts commit 4010bb04588fca86a9f6d683b637c05b4cec24e0. This optimization did not offer much benefit and there may be corner cases in the internal structure handling that may not be possibly to handle with this optimization. | ||||
* | %x expects an unsigned int, but unsigned char is promoted to int | Pascal Cuoq | 2016-04-03 | 1 | -5/+5 |
| | |||||
* | coding: Fixes to prevent undefined behavior (found with libubsan) | Nikos Mavrogiannopoulos | 2016-02-29 | 1 | -3/+5 |
| | |||||
* | der_coding: always null terminate errorDescription | Nikos Mavrogiannopoulos | 2016-01-08 | 1 | -0/+3 |
| | |||||
* | asn1_array2tree: always null terminate errorDescription | Nikos Mavrogiannopoulos | 2016-01-08 | 1 | -0/+2 |
| | |||||
* | libtasn1.h updated versionlibtasn1_4.7 | Nikos Mavrogiannopoulos | 2015-09-14 | 1 | -1/+1 |
| | |||||
* | corrected regression in multi-byte tag handling | Nikos Mavrogiannopoulos | 2015-09-14 | 1 | -12/+21 |
| | | | | That is don't treat the explicit tag as part of the inner tag. | ||||
* | updated for 4.6libtasn1_4_6 | Nikos Mavrogiannopoulos | 2015-09-05 | 1 | -1/+1 |
| | |||||
* | don't export asn1_get_time_der | Nikos Mavrogiannopoulos | 2015-06-20 | 3 | -30/+15 |
| | |||||
* | Allow decoding octet strings with multi-byte tags | Nikos Mavrogiannopoulos | 2015-06-08 | 1 | -3/+12 |
| | | | | Report and initial patch by Tomas Petrilak. | ||||
* | simplified asn1_get_time_der | Nikos Mavrogiannopoulos | 2015-06-08 | 2 | -18/+31 |
| | |||||
* | export asn1_get_time_der() | Nikos Mavrogiannopoulos | 2015-06-02 | 3 | -6/+23 |
| | |||||
* | export asn1_get_object_id_der | Nikos Mavrogiannopoulos | 2015-06-02 | 2 | -4/+21 |
| | |||||
* | enforce type checks in asn1_decode_simple_der and ber | Nikos Mavrogiannopoulos | 2015-06-02 | 2 | -7/+9 |
| | |||||
* | _asn1_extract_der_octet: prevent past of boundary access | Nikos Mavrogiannopoulos | 2015-04-20 | 1 | -1/+2 |
| | | | | Reported by Hanno Böck. | ||||
* | bumped versionslibtasn1_4_4 | Nikos Mavrogiannopoulos | 2015-03-29 | 1 | -1/+1 |
| | |||||
* | increased size of LTOSTR_MAX_SIZE to account for sign and null byte | Nikos Mavrogiannopoulos | 2015-03-26 | 2 | -4/+5 |
| | | | | This address an overflow found by Hanno Böck in DER decoding. | ||||
* | removed debug flag | Nikos Mavrogiannopoulos | 2015-03-06 | 1 | -1/+0 |
| | |||||
* | asn1_decode_simple_ber() will decode unsupported types as DER | Nikos Mavrogiannopoulos | 2015-03-06 | 2 | -32/+38 |
| | |||||
* | doc update | Nikos Mavrogiannopoulos | 2015-03-04 | 1 | -1/+1 |
| | |||||
* | doc update | Nikos Mavrogiannopoulos | 2015-03-04 | 1 | -3/+2 |
| | |||||
* | Added asn1_decode_simple_ber() | Nikos Mavrogiannopoulos | 2015-03-04 | 3 | -2/+187 |
| | |||||
* | only assign value if the previous node has one | Nikos Mavrogiannopoulos | 2015-02-05 | 1 | -3/+6 |
| | | | | | This addresses the crash in the ASN.1 definitions parser reported in http://lists.gnu.org/archive/html/help-libtasn1/2015-01/msg00000.html | ||||
* | bumped version | Nikos Mavrogiannopoulos | 2014-09-15 | 1 | -1/+1 |
| | |||||
* | enforce the new time tests only in strict DER mode | Nikos Mavrogiannopoulos | 2014-09-15 | 1 | -26/+28 |
| | |||||
* | avoid warning | Nikos Mavrogiannopoulos | 2014-09-04 | 1 | -1/+1 |
| | |||||
* | corrected regression which caused the failure of octet string extraction | Nikos Mavrogiannopoulos | 2014-09-04 | 1 | -1/+2 |
| | | | | | This affected octet strings placed at the end of the structure. Fixes issue with OCSP response parsing in gnutls. | ||||
* | added more warnings | Nikos Mavrogiannopoulos | 2014-09-04 | 1 | -4/+16 |
| | |||||
* | perform sanity checks in Time field | Nikos Mavrogiannopoulos | 2014-08-29 | 1 | -4/+51 |
| | |||||
* | released 4.1libtasn1_4_1 | Nikos Mavrogiannopoulos | 2014-08-23 | 1 | -1/+1 |
| | |||||
* | Added decoding flag ASN1_DECODE_FLAG_STRICT_DER | Nikos Mavrogiannopoulos | 2014-08-20 | 2 | -22/+47 |
| | |||||
* | corrected check for infinite encoding | Nikos Mavrogiannopoulos | 2014-08-20 | 1 | -4/+6 |
| | |||||
* | BER decoding: corrected indefinite tag check in ANY constructions | Nikos Mavrogiannopoulos | 2014-08-20 | 1 | -22/+24 |
| | |||||
* | bumped version | Nikos Mavrogiannopoulos | 2014-06-20 | 1 | -1/+1 |
| | |||||
* | Renamed asn1_der_decoding_relaxed(), added ASN1_DECODE_FLAG_ALLOW_PADDING. | Karel Slany | 2014-06-20 | 3 | -24/+18 |
| | |||||
* | Added asn1_der_decoding_relaxed(). | Karel Slany | 2014-06-20 | 3 | -13/+61 |
| | |||||
* | doc update | Nikos Mavrogiannopoulos | 2014-06-17 | 1 | -0/+3 |
| | |||||
* | doc update | Nikos Mavrogiannopoulos | 2014-06-17 | 1 | -1/+7 |
| |