You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug was reported to me by email. I am including it here for the record. This is the first silent data loss bug ever found in qpdf. When splitting/merging pages and discarding unreferenced resources, if the /Font or /XObject keys in the page's resource dictionaries were indirect and some XObjects or Fonts were referenced on some but not all of the pages, only images or fonts referenced on all pages would be maintained. The root cause was basically a typo. The comment in the code explained clearly how to handle this case, but the code was actually replacing the dictionaries with themselves rather than with shallow copies of themselves. The fix is a single line of code. The commit that fixes this applies cleanly to all released versions of qpdf from 8.1.0 forward. The bug was introduced in version 8.1.0.
The text was updated successfully, but these errors were encountered:
This bug was reported to me by email. I am including it here for the record. This is the first silent data loss bug ever found in qpdf. When splitting/merging pages and discarding unreferenced resources, if the /Font or /XObject keys in the page's resource dictionaries were indirect and some XObjects or Fonts were referenced on some but not all of the pages, only images or fonts referenced on all pages would be maintained. The root cause was basically a typo. The comment in the code explained clearly how to handle this case, but the code was actually replacing the dictionaries with themselves rather than with shallow copies of themselves. The fix is a single line of code. The commit that fixes this applies cleanly to all released versions of qpdf from 8.1.0 forward. The bug was introduced in version 8.1.0.
The text was updated successfully, but these errors were encountered: