Commit 66d542b6 authored by Lev Walkin's avatar Lev Walkin

more heuristics testing

parent f1a51236
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* GeneralizedTime API now supports fractions of seconds. * GeneralizedTime API now supports fractions of seconds.
Thanks to Bent Nicolaisen <BN@JAI.com> for support. Thanks to Bent Nicolaisen <BN@JAI.com> for support.
* ASN.1 parser has been tweaked to allow parsing something like * ASN.1 parser has been tweaked to allow parsing something like
"SEQUENCE--- comment ---", which is ambiguous for many reasons. "SEQUENCE----comment----", which is ambiguous for many reasons.
* XER decoder better handles not-yet-defined future extensions. * XER decoder better handles not-yet-defined future extensions.
0.9.15: 2005-July-02 0.9.15: 2005-July-02
......
...@@ -51,11 +51,8 @@ memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -51,11 +51,8 @@ memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
return -1; return -1;
} }
{ /* Determine the number of elements */ /* Determine the number of elements */
const A_SEQUENCE_OF(void) *list; size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
(const void *)list = sptr;
size = list->count;
}
if((size >= 1)) { if((size >= 1)) {
/* Perform validation of the inner elements */ /* Perform validation of the inner elements */
...@@ -388,11 +385,8 @@ memb_vset_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -388,11 +385,8 @@ memb_vset_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
return -1; return -1;
} }
{ /* Determine the number of elements */ /* Determine the number of elements */
const A_SET_OF(void) *list; size = _A_CSET_FROM_VOID(sptr)->count;
(const void *)list = sptr;
size = list->count;
}
if((size >= 1)) { if((size >= 1)) {
/* Perform validation of the inner elements */ /* Perform validation of the inner elements */
......
...@@ -11,8 +11,11 @@ ModuleTestComments ...@@ -11,8 +11,11 @@ ModuleTestComments
DEFINITIONS ::= DEFINITIONS ::=
BEGIN BEGIN
T1 ::= SEQUENCE-- This is a comment-- { ... } T1 ::= SEQUENCE--comment-- { ... }
T2 ::= SEQUENCE--- This is a comment --- { ... } T2 ::= SEQUENCE-- comment-- { ... }
T3 ::= SEQUENCE--- comment --- { ... }
T4 ::= SEQUENCE----comment---- { ... }
T5 ::= SEQUENCE---- comment ---- { ... }
----- Another ambiguous comment --- ----- Another ambiguous comment ---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment