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
d5627a1f11
more logical structure
2017-11-07 01:04:40 -08:00
Lev Walkin
f3334585a7
update doc
2017-11-07 00:02:24 -08:00
Lev Walkin
08661a6508
use ptrdiff_t
2017-11-06 02:08:47 -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
1a49ced90e
use hash for name lookup
2017-11-06 00:07:53 -08:00
Lev Walkin
a67d11061e
name clashes using generic hashing
2017-11-06 00:07:53 -08:00
Lev Walkin
adfcde29cd
generic hashing mechanism
2017-11-06 00:07:53 -08:00
Jon Ringle
3bcab4ebfa
Add test case for issue #178
2017-11-05 21:55:15 -08:00
Lev Walkin
8baaf6b0d2
fix randomized failures on fast enough systems
2017-11-05 21:39:58 -08:00
Lev Walkin
ce2068a507
fix builddir
2017-11-05 21:08:57 -08:00
Lev Walkin
c9b2f28b98
replace incompatible awk with C
2017-11-05 20:32:15 -08:00
Lev Walkin
3f52df00df
removed autotools intermediate files from source code
2017-10-31 19:35:50 -07:00
Lev Walkin
ee8482a55d
avoid complaints about _BSD_SOURCE on ubuntu
2017-10-31 18:26:15 -07:00
Lev Walkin
a53bdf16a0
removed autotools intermediate files from source code
2017-10-31 17:21:37 -07:00
Lev Walkin
f22184d31c
force recompile T object
2017-10-27 18:40:32 -07:00
Lev Walkin
5e73c5058b
add missing member
2017-10-26 00:38:43 -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
6fd84337a5
avoid failing on something that is considered compression bomb
2017-10-24 03:54:23 -07:00
Lev Walkin
3bbbd04155
remove warning
2017-10-24 03:34:24 -07:00
Bi-Ruei, Chiu
2387ff39ae
Modify test 156 for verifying pull request 224 and 227 simultaneously
2017-10-24 03:31:59 -07:00
Bi-Ruei, Chiu
5bdb55552f
Fix duplicate 'asn_VAL_23_ignore' generated from RANAP ASN.1
...
Information object set RANAP-ELEMENTARY-PROCEDURES is a union of
RANAP-ELEMENTARY-PROCEDURES-CLASS-1 and RANAP-ELEMENTARY-PROCEDURES-CLASS-2.
Each time _asn1f_assign_cell_value() parses an object, value of an
incremented counter is assigned to '_type_unique_index' field for
distinquishing different items.
However, these two information object sets have their own counters.
It has chance that generated variables have the same name and also the same
'_type_unique_index'. And they collide if they join up into one set.
S1AP's ASN.1 is lucky without this problem, while RANAP has.
By adding the number of items of the first set to '_type_unique_index' field
of items of the second set can solve this issue.
2017-10-24 03:31:59 -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
e5f0d94aa9
preserve rmax for fuzzer
2017-10-24 00:59:32 -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
cb59ce69a8
library name change
2017-10-24 00:05:11 -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
df2edbbd15
regenerated
2017-10-21 13:40:07 -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
ba2c5727d0
more debug
2017-10-20 23:09:45 -07:00
Lev Walkin
1418d985cb
verify unusual PER canonical order
2017-10-20 17:27:29 -07:00