Skip to content
Snippets Groups Projects
Commit 00df16d0 authored by Lev Walkin's avatar Lev Walkin
Browse files

test for utf8 constraint code generation

parent fac2e94b
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ BEGIN
SIZE-and-FROM ::= PER-Visible (SIZE(1..4) ^ FROM("ABCD"))
Neither-SIZE-nor-FROM ::= PER-Visible (SIZE(1..4) | FROM("ABCD",...))
Utf8-4 ::= UTF8String (FROM("A".."Z"|"a".."z")) -- Alphabet
Utf8-4 ::= UTF8String (FROM("A".."Z")) -- Alphabet
Utf8-3 ::= Utf8-2 (FROM("A".."Z"|"a".."z")) -- Alphabet and size
Utf8-2 ::= Utf8-1 (SIZE(1..2)) -- Size
Utf8-1 ::= UTF8String
......
No preview for this file type
......@@ -2347,7 +2347,7 @@ Utf8_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
size = UTF8String_length(st);
if(size < 0) {
if((ssize_t)size < 0) {
_ASN_ERRLOG(app_errlog, app_key,
"%s: UTF-8: broken encoding (%s:%d)",
td->name, __FILE__, __LINE__);
......@@ -2482,7 +2482,7 @@ Utf8_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
size = UTF8String_length(st);
if(size < 0) {
if((ssize_t)size < 0) {
_ASN_ERRLOG(app_errlog, app_key,
"%s: UTF-8: broken encoding (%s:%d)",
td->name, __FILE__, __LINE__);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment