pdf-devel
[Top][All Lists]
Advanced

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

[pdf-devel] Re: rldec eod management


From: gerel
Subject: [pdf-devel] Re: rldec eod management
Date: Sun, 28 Sep 2008 08:15:43 -0700 (PDT)

 > Date: Sun, 28 Sep 2008 13:59:10 +0200
 > From: address@hidden
 > 
 > Hi Gerel.

Hey jemarch,
 
 > 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?

Right, I'm thinking why it wasn't in fact. Let me check it.

-gerel




reply via email to

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