Fix UPER string decoding constrained only by lower bound > 0
diff --git a/skeletons/per_opentype.c b/skeletons/per_opentype.c
index 9b213d8..afcc42c 100644
--- a/skeletons/per_opentype.c
+++ b/skeletons/per_opentype.c
@@ -73,7 +73,7 @@
ASN_DEBUG("Getting open type %s...", td->name);
do {
- chunk_bytes = uper_get_length(pd, -1, &repeat);
+ chunk_bytes = uper_get_length(pd, -1, 0, &repeat);
if(chunk_bytes < 0) {
FREEMEM(buf);
ASN__DECODE_STARVED;
@@ -329,7 +329,7 @@
return -1;
}
- next_chunk_bytes = uper_get_length(oldpd, -1, &arg->repeat);
+ next_chunk_bytes = uper_get_length(oldpd, -1, 0, &arg->repeat);
ASN_DEBUG("Open type LENGTH %ld bytes at off %ld, repeat %ld",
(long)next_chunk_bytes, (long)oldpd->moved, (long)arg->repeat);
if(next_chunk_bytes < 0) return -1;