pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pdf-devel] rldec eod management


From: jemarch
Subject: [pdf-devel] rldec eod management
Date: Sun, 28 Sep 2008 13:59:10 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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

[Prev in Thread] Current Thread [Next in Thread]