[NTG-pdftex] [pdftex-Patches][3886] Fix for str_less_str (bug #993)

pdftex-patches at sarovar.org pdftex-patches at sarovar.org
Tue Dec 1 23:03:24 CET 2009


Patches item #3886, was opened at 2009-04-06 03:38
>Status: Closed
Priority: 3
Submitted By: Heiko Oberdiek (oberdiek)
Assigned to: Nobody (None)
Summary: Fix for str_less_str (bug #993) 
Category: None
Group: None
>Resolution: Accepted


Initial Comment:
The patch is based on pdftex-1.40.9.

It fixes the bug #993 `/Names array not sorted correctly'
by correcting function `str_less_str'.

In theory pdfTeX can still be fooled by
* invalid pdf strings and
* equal destination names that only differs
  in the way of escaping.

But both problems can be solved at macro level by passing
the name argument of \pdfdest through \pdfescapestring.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


----------------------------------------------------------------------

>Comment By: The Thanh Han (hanthethanh)
Date: 2009-12-01 22:03

Message:
included in 1.40.10

----------------------------------------------------------------------

Comment By: Heiko Oberdiek (oberdiek)
Date: 2009-04-06 13:14

Message:
Thanh,

I forgot. Thanks, also for removing the redundancy --
I am not too familiar with the "web" language.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

----------------------------------------------------------------------

Comment By: The Thanh Han (hanthethanh)
Date: 2009-04-06 13:01

Message:
Heiko,

it seems the test (c2 < 32) is missing for the second string. I changed slightly your patch. It looks a bit ugly now but less redundant.


----------------------------------------------------------------------

Comment By: Heiko Oberdiek (oberdiek)
Date: 2009-04-06 04:08

Message:
pdftex2.web.diff replaces pdftex.web.diff.
It handles the case correctly if the octal sequence
starts with a digit greater than three.


----------------------------------------------------------------------

You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=495&aid=3886&group_id=106


More information about the ntg-pdftex mailing list