[PR] read OldFfn font description length as unsigned byte [p oi]

metsw24-max (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.poi.devel
Message-ID <[email protected]>
metsw24-max opened a new pull request, #1122:
URL: https://github.com/apache/poi/pull/1122

   **Signed font-description length in OldFfn**
   
   The length byte for a Word 6/95 font record is read as a signed `byte`, so a description of 128 bytes or more turns negative and slips past the table-end guard. A record that large then loses its alternate font name and reports the wrong record length, so the remaining font table is parsed from the wrong offset. The newer `Ffn` reader already takes the equivalent `cbFfnM1` field through `getUByte`, so this keeps `OldFfn` consistent with it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.