Skip to content

XeTeX: preserve filedump offsets beyond 16 bits - #89

Open
IvanaGyro wants to merge 2 commits into
TeX-Live:trunkfrom
IvanaGyro:xetex-filedump-offset
Open

XeTeX: preserve filedump offsets beyond 16 bits#89
IvanaGyro wants to merge 2 commits into
TeX-Live:trunkfrom
IvanaGyro:xetex-filedump-offset

Conversation

@IvanaGyro

Copy link
Copy Markdown

Fixes #88.

XeTeX stored the parsed \\filedump offset in small_number, truncating
values at the 16-bit boundary before getfiledump received them. Store the
offset in integer, matching the helper's argument type.

The first commit adds a regression fixture with sentinel bytes around the
16-bit boundary, together with EOF and invalid-argument cases. The second
commit contains the one-line fix.

Tested:

  • make xetex
  • xetex-filedump.test

Add a filedump fixture with sentinel bytes around the 16-bit offset
boundary, along with EOF and invalid range cases. This exposes the
current offset truncation.

Assisted-by: Codex
The conversion routine stored the scanned offset in small_number,
truncating values at the 16-bit boundary before getfiledump() saw
them. Store it in integer, matching the helper's offset parameter.

Fixes: TeX-Live#88
Assisted-by: Codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XeTeX \filedump offset is truncated to 16 bits

1 participant