Commit Graph

823 Commits

Author SHA1 Message Date
Lev Walkin bbe79251e7 formatting 2017-11-20 19:41:23 -08:00
Lev Walkin 686f38bf94 constness fix 2017-11-14 22:05:45 -08:00
Lev Walkin 304a70e9ac remove warnings 2017-11-13 23:28:54 -08:00
Lev Walkin f9a94dfa1d update dependencies 2017-11-13 23:23:19 -08:00
Lev Walkin f09cf4888d update dependencies 2017-11-13 23:16:06 -08:00
Lev Walkin d3fd7a4bdf update dependencies 2017-11-13 23:13:11 -08:00
Bi-Ruei, Chiu 8ae074ce79 Fix 'make check' error under sample.source.RRC 2017-11-13 22:23:29 -08:00
Lev Walkin 7d5d930393 more precise OER and PER code bundling 2017-11-13 22:17:20 -08:00
Lev Walkin 3be4919d01 make -pdu=auto a default 2017-11-11 16:13:32 -08:00
Lev Walkin 933b950a80 moved decl around to maintain comments continuity 2017-11-07 05:55:29 -08:00
Lev Walkin cf573ec13c constness 2017-11-07 04:20:52 -08:00
Lev Walkin ec4b7af9ef doc 2017-11-07 04:20:36 -08:00
Lev Walkin 1fc5edb22d asn_encode_to_new_buffer() 2017-11-06 01:58:49 -08:00
Lev Walkin cd8f1e0377 uper_encode() with NULL callback to ignore output and return the number of bits 2017-11-06 00:13:32 -08:00
Lev Walkin ee8482a55d avoid complaints about _BSD_SOURCE on ubuntu 2017-10-31 18:26:15 -07:00
Lev Walkin 1351752f8d fixed non-trivial SIZE constraints for SET OF and SEQUENCE OF, fuzz-tested 2017-10-26 00:38:43 -07:00
Vasil Velichkov 24354e1cd0 fix UPER decoding of SET OF with more then 16K elements 2017-10-25 22:22:54 -07:00
Vasil Velichkov b623e8d701 Fix an undefined behaviour error in constr_SET_OF.c
constr_SET_OF.c:315:13: runtime error: null pointer passed as argument 1, which is declared to never be null

Also move some asserts into dedicated function because b->buf could be
NULL while a->length is greater then zero
2017-10-25 22:22:54 -07:00
Vasil Velichkov abb7133c23 Fix UPER encoding of empty SEQUENCE OF
A length determinant was not added when the SEQUENCE OF was empty
according to the X.691 #20.6 and #11.9.4.1.

This fixes a failure in 16-SEQUENCE-bundle

Decoding 1 bytes of T yielded RC_WMORE after byte 0
Original random structure:
T ::= {
    list: list ::= {
    }
    guard: 01
}
2017-10-25 22:22:54 -07:00
Vasil Velichkov 5fcbb2868d Do not build 32bit skeletons lib and check-converter
when the 32bit build is dislabed.

On MacOS with Xcode 9.0 the make check fails because the ar
cannot build empty static libraries

Fixes #228
2017-10-25 22:22:54 -07:00
Lev Walkin 3bbbd04155 remove warning 2017-10-24 03:34:24 -07:00
Lev Walkin 7156898e45 protect from SET OF NULL compression bomb 2017-10-24 03:29:31 -07:00
Lev Walkin d8e6bbfa9a fix memory realloc 2017-10-24 03:26:40 -07:00
Lev Walkin 52b88e1b54 uper and oer SET OF and SEQUENCE OF verified 2017-10-24 03:03:46 -07:00
Lev Walkin 9175a28a5a deprecate EMIT_ASN_DEBUG, move under ASN_ namespace 2017-10-24 00:58:42 -07:00
Lev Walkin 5615304c9a api change uper_encode() 2017-10-24 00:47:03 -07:00
Lev Walkin 005f8799b1 abstract out sorting 2017-10-23 23:15:51 -07:00
Lev Walkin b2219ac657 remove debug 2017-10-23 22:18:41 -07:00
Lev Walkin ddac40017f mask PER 2017-10-23 22:15:53 -07:00
Lev Walkin 3ca48b9168 readme fix 2017-10-21 22:00:00 -07:00
Lev Walkin b1d4102cd3 clarifying comment 2017-10-21 21:58:50 -07:00
Lev Walkin 9f470d60fa stop ignoring formatting problems, start ignoring long long extension problems 2017-10-21 16:27:08 -07:00
Lev Walkin d2a7360685 bound the size of SEQUENCE OF and SET OF random generator 2017-10-21 13:14:51 -07:00
Lev Walkin 62155df04d add stack overflow protection for SEQUENCE and SEQUENCE OF 2017-10-21 01:16:17 -07:00
Lev Walkin 3c37385d29 fix OER comparison API 2017-10-21 01:09:13 -07:00
Lev Walkin 836686167d fix after UPER round-trip fuzz 2017-10-21 00:24:31 -07:00
Lev Walkin 5de8274266 fix UPER BIT STRING trailer encoding 2017-10-20 23:12:09 -07:00
Lev Walkin 6bc5696f52 fix consrtaint propagation for random_fill 2017-10-20 04:19:37 -07:00
Lev Walkin d14802fa0f fix OER SEQUENCE decode memory leak 2017-10-20 03:51:21 -07:00
Lev Walkin 9d328eec0a use oer guara 2017-10-20 03:51:21 -07:00
Lev Walkin 42f6c88018 fix OER NULL and SEQUENCE extensions round-trip 2017-10-20 03:22:51 -07:00
Lev Walkin 48e82d1f1f removed gcc-7 warnings 2017-10-19 03:07:27 -07:00
Lev Walkin bc09dd4845 generate constraints differently to avoid warnings 2017-10-19 02:16:35 -07:00
Vasil Velichkov c8bc573f06 Fix another sign-compare error in oer_support.c
oer_support.c:66:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
2017-10-18 23:32:47 -07:00
Vasil Velichkov 3875d507d9 Switch uint8_t to size_t as len_len's type 2017-10-18 23:32:47 -07:00
Vasil Velichkov e56f4b24d4 Fix one sign-compare error in OCTET_STRING.c
OCTET_STRING.c:1896:46: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
2017-10-18 23:32:47 -07:00
Vasil Velichkov e60e6f225a Fix sign-compare error in oer_support
oer_support.c:38:22: error: comparison between signed and unsigned integer expressions [-Werror=s
2017-10-18 23:32:47 -07:00
Vasil Velichkov c3e0019b56 Fix sign-compare error in constr_SEQUENCE.c
constr_SEQUENCE.c:1438:24: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
2017-10-18 23:32:47 -07:00
Vasil Velichkov 39ab82f36d Fix two strict-aliasing errors
NativeReal.c:366:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
NativeReal.c:370:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
2017-10-18 23:32:47 -07:00
Vasil Velichkov 6aac1c3c16 Fix sign-compare errors
BIT_STRING.c:494:45: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
BIT_STRING.c:580:46: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
2017-10-18 23:32:47 -07:00