Commit 89054453 authored by Lev Walkin's avatar Lev Walkin

indefinite length should not cause this

parent 9d2f82f8
...@@ -217,7 +217,7 @@ static pd_code_e process_deeper(const char *fname, FILE *fp, asn1c_integer_t *of ...@@ -217,7 +217,7 @@ static pd_code_e process_deeper(const char *fname, FILE *fp, asn1c_integer_t *of
/* Get the next byte from the input stream */ /* Get the next byte from the input stream */
ch = fgetc(fp); ch = fgetc(fp);
if(ch == -1) { if(ch == -1) {
if(tblen || limit) { if(tblen || limit > 0) {
fprintf(stderr, fprintf(stderr,
"%s: Unexpected end of file (TL)" "%s: Unexpected end of file (TL)"
" at %" PRIdASN "\n", " at %" PRIdASN "\n",
......
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