Lev Walkin
20696a4ff3
constness fixes, round-trip and fuzz-testing for CHOICE
2017-10-17 21:27:55 -07:00
Lev Walkin
588bf0f7dc
OBJECT IDENTIFIER and RELATIVE-OID API simplified
2017-10-13 23:51:16 -07:00
Lev Walkin
c346f90373
easier fix for sanitization (by @velichkov)
2017-10-09 20:30:08 -07:00
Lev Walkin
e2bbbf8f1e
remove the use of alloca in skeletons
2017-10-08 18:52:37 -07:00
Lev Walkin
cc6a76b2d6
Undefined Behavior sanitizer fixes
2017-10-07 16:23:16 -07:00
Lev Walkin
b7c5899615
Ensure XER decoding happens in the long domain (instead of imax_t)
2017-10-06 16:36:32 -07:00
Lev Walkin
aa067a9875
INTMAX_MAX constant uses nnnLL format which is not compatible with -std=c89
2017-10-03 16:09:05 -07:00
Lev Walkin
67afc36530
remove warnings
2017-10-03 15:47:26 -07:00
Lev Walkin
5d947a879e
fix UPER decoding of large [bit-]strings of size a multiple of 16K
2017-10-03 01:04:03 -07:00
Lev Walkin
793982a581
fix XER decoder crash on maliciously constructed ENUMERATED input
2017-10-02 14:12:51 -07:00
Lev Walkin
9d1b45f8ac
Fix UPER string decoding constrained only by lower bound > 0
2017-10-02 00:42:00 -07:00
Lev Walkin
18741a96a3
constrain integer random generation by PER constraints
2017-10-02 00:41:59 -07:00
Lev Walkin
a5972bedae
Combined constraints and introduced value randomizer.
2017-09-29 23:15:58 -07:00
Lev Walkin
a4f689122f
less misleading name
2017-09-27 02:21:38 +00:00
Lev Walkin
3f99563146
cross-compile-safe options
2017-09-26 18:27:32 -07:00
Lev Walkin
38a91df0fc
remove undefined behavior
2017-09-17 23:52:33 -07:00
Lev Walkin
642b92f3fe
get rid of undefined behavior sanitizer warning
2017-09-17 22:16:02 -07:00
Lev Walkin
afbf2a9828
add const
2017-09-12 23:30:27 -07:00
Lev Walkin
154519a3a7
removed superfluous constraints duplication
2017-09-06 23:34:40 -07:00
Lev Walkin
290b4d6918
https://github.com/vlm/asn1c/issues/161
2017-08-28 17:48:35 -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
Bi-Ruei, Chiu
e1bf21933e
Fix issue 180 and 182
2017-08-22 20:41:13 +08:00
Lev Walkin
d62a662d1f
const fix
2017-08-22 02:31:02 -07:00
Lev Walkin
cd2f48eb5a
structure comparison functions
2017-08-10 02:52:25 -07:00
Lev Walkin
494fb707a7
fix warnings
2017-08-07 20:07:08 -07:00
Lev Walkin
8077f93861
define INTEGER_free
2017-08-07 17:27:43 -07:00
Lev Walkin
b33425f16b
fix OER stubs order
2017-08-02 13:32:18 -07:00
Lev Walkin
527497f791
enable OER encoder
2017-08-02 13:32:18 -07:00
Lev Walkin
ed3a4ae4ac
INTEGER decoding stub
2017-08-02 13:32:17 -07:00
Lev Walkin
7678076f34
introduce oer constraint code
2017-08-02 13:32:16 -07:00
Lev Walkin
cc1594746a
add skeleton OER stubs
2017-08-02 13:32:16 -07:00
Lev Walkin
5d9e3c50b5
remove warning
2017-07-05 16:25:24 -07:00
Lev Walkin
72ec909738
introduce intmax_t
2017-07-05 05:49:12 -07:00
Lev Walkin
7e0ab8821d
remove unreferenced var
2017-06-28 08:47:47 -07:00
Lev Walkin
bce0ce4351
_BSD_SOURCE moved to a more global location
2016-07-02 23:51:32 -07:00
Lev Walkin
eabd277f06
_BSD_SOURCE might be defined in unber.c
2016-07-02 23:22:58 -07:00
Lev Walkin
a6040115b3
unlock snprintf on some systems
2016-07-02 23:01:30 -07:00
Lev Walkin
0ec6b19a78
try to move it around for travis
2016-03-14 05:17:34 -07:00
Lev Walkin
25307f6eb6
explicit stdio for snprintf
2016-03-14 04:44:03 -07:00
Lev Walkin
7c1dc05f0e
do not use reserved identifiers, contd
2016-03-14 03:08:19 -07:00
Lev Walkin
9d59a402a6
Merge pull request #50 from jariq/master
...
C89 compliant variable declaration
2015-09-14 13:49:35 -07:00
Simo Sorce
4f47bf56d4
Keep static analyzers happy
...
Make it clear fall through is intentional.
Signed-off-by: Simo Sorce <simo@redhat.com>
2015-09-03 17:36:12 -04:00
Jaroslav Imrich
2253e6b45a
C89 compliant variable declaration
2014-10-31 23:05:21 +01:00
Wim Lewis
59e8d2847e
It's actually more efficient *not* to create a mutable static variable to hold this constant string's address.
2014-08-04 12:39:35 -07:00
Wim Lewis
18c2ec9f1d
Declare the tags[] tables in skeletons as const.
...
Constify the PER support structure.
Constify a few other private tables in the skeleton code.
2014-07-29 11:30:10 -07:00
Wim Lewis
fb6344ef75
Declare most internal, constant tables as const, particularly the
...
"specifics" structures and the tables they point to.
2014-07-28 12:16:01 -07:00
Wim Lewis
14e6b16146
Declare the type descriptor and input buffer args of some functions as const.
2014-07-23 16:06:01 -07:00
Lev Walkin
58b74eb570
add signed integer tests for test 134
2014-02-10 09:24:39 -08:00
Lev Walkin
6c52784de1
PER-encoding of integers wider than 32 bits
2014-02-09 04:34:54 -08:00
Lev Walkin
97f8edc598
simplify xer encoding
2013-03-28 04:38:41 -07:00