Lev Walkin
435469ec33
remove gcc compiler warnings
2017-10-19 03:39:32 -07:00
Lev Walkin
b1f4f33ae6
remove gcc-7 compiler warnings
2017-10-19 03:28:49 -07:00
Lev Walkin
bc09dd4845
generate constraints differently to avoid warnings
2017-10-19 02:16:35 -07:00
Lev Walkin
5754545305
link skeletons instead of copy
2017-10-17 18:37:42 -07:00
Vasil Velichkov
edd82a9686
Do not call memcpy with NULL src pointer
...
This fix the following ubsan error
check-62.c:36:2: runtime error: null pointer passed as argument 2, which is declared to never be null
2017-10-10 09:11:39 -07:00
Vasil Velichkov
fc25d5e708
Fix the memory leaks in check-42.c test
...
The asn_set_add calls realloc in some of the cases and the struct cannot
be freed correctly when the sub-structs are allocated on the stack
2017-10-10 09:11:39 -07:00
Vasil Velichkov
cef21e07ac
Fix several memory leaks in the tests
2017-10-10 09:11:39 -07:00
Vasil Velichkov
5532a1d6cc
Expose the ASAN_ENV_FLAGS in check-assembly.sh
2017-10-10 09:08:10 -07:00
Lev Walkin
40b8a7ae99
simpler makefile generation
2017-10-08 22:56:13 -07:00
Lev Walkin
a4f8e94bc1
get rid of alloca() in compiler
2017-10-08 19:28:56 -07:00
Lev Walkin
8e71151267
add file which is not guaranteed to be included
2017-10-08 16:18:05 -07:00
Lev Walkin
15734f9a06
fixed usage
2017-09-30 11:41:51 -07:00
Lev Walkin
15b26e6d50
converter-sample renamed into converter-example
2017-09-26 23:05:14 -07:00
Lev Walkin
1900888569
bsd compat
2017-09-27 02:29:27 +00:00
Lev Walkin
16555a1e17
cross-platform mandatory include
2017-09-26 19:04:15 -07:00
Lev Walkin
dcae9cea97
fixed leaks in CHOICE/XER and REAL conversion
2017-09-18 20:13:36 -07:00
Lev Walkin
c8c286ab11
added fuzzer for XER test 70
2017-09-18 03:19:37 -07:00
Lev Walkin
4fe2882262
ensure xer encode yields the same number of bytes as it sends to the callback
2017-09-18 02:57:43 -07:00
Lev Walkin
7489807aa7
get rid of zer_* in favor of generic asn_encoder and asn_decoder
2017-09-18 00:56:06 -07:00
Lev Walkin
a75b247f72
remove undefined behavior sanitizer warning
2017-09-18 00:38:43 -07:00
Lev Walkin
e0236da7cd
ensure undefined behavior sanitizer crashes the programs
2017-09-17 22:15:34 -07:00
Lev Walkin
7b04d79348
compiler selectivity
2017-09-16 00:04:18 -07:00
Lev Walkin
58dd8c868f
fix option naming
2017-09-15 23:53:19 -07:00
Lev Walkin
07a50d8e3e
introduce fuzzer and removed fuzzer-guided warning
2017-09-15 23:26:11 -07:00
Lev Walkin
387a8f01c9
draft fuzzer infrastructure
2017-09-15 23:24:00 -07:00
Lev Walkin
b5cdc5d2d9
add C++ compile check
2017-09-15 21:57:46 -07:00
Lev Walkin
24cf97dc1c
-fsanitize=undefined does not work with -O0
2017-09-15 20:34:25 -07:00
Lev Walkin
4084658614
default bsd make compilation does not include use preprocessor flags
2017-09-13 23:02:03 +00:00
Ryan Sleevi
a93d9971d2
Add unittest, which revealed that default booleans were not set properly
2017-08-28 17:37:09 -07:00
Lev Walkin
026055ff81
avoid referencing skeletons to avoid duplicating symbols
2017-08-27 01:28:59 -07:00
Lev Walkin
122002e3a7
generate codecs flags
2017-08-26 23:31:09 -07:00
Lev Walkin
8d99d7b5c8
introduced ASN_STRUCT_RESET; preferred over ASN_STRUCT_FREE_CONTENTS_ONLY
2017-08-25 01:06:00 -07:00
Bi-Ruei, Chiu
1f87ac0058
Move type operations to another structure
...
Every type has free, print, check_constraints, ber_decoder, der_encoder,
xer_decoder, xer_encoder, uper_decoder, uper_encoder and outmost_tag
operations. We move them out to a separate structure asn_TYPE_operation_t.
Combined with previous logic simplification, these operations are based
on ASN.1 basic types, constructed types and string types. So we can
reduce the space occupied by asn_TYPE_descriptor_t variables.
2017-08-24 14:09:28 +08:00
Lev Walkin
700df493dd
reshuffled the tests layout
2017-08-10 14:59:15 -07:00