Hi Gerel.

If you take a look to
http://www.gnupdf.org/prmgt/coverage/src/base/pdf-stm-f-rl.c.gcov.html
you will see that the lines 202 to 203 are not executed in the unit
tests: 

                :       /* EOD mark */
     200                 :       else
     201                 :         {
     202               0 :           in->rp++;
     203               0 :           break;
     204                 :         }

The test 'pdf_stm_read_005' is using the following encoded data:

  pdf_char_t *dataux, *encoded =
    "\x00" "1" "\xff" "2" "\xfe" "3" "\xfd" "4" "\xfc" "5" "\xfb" "6" \
    "\xfa" "7" "\xf9" "8" "\xf8" "9" "\x00" "\x00" "\x80";

The last character in the encoded data is 0x80 = 128, so I guess that
the non-executed code should be executed when the decoder reads the
last character?



Reply via email to