Skip to content

Commit

Permalink
PDFBOX-5281: allow readonly too, as suggested by Fernando Sadu
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1893502 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Sep 22, 2021
1 parent c89844f commit 4896c6f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ private void parseBinary(byte[] bytes) throws IOException
read(Token.NAME, "def");
read(Token.END_PROC);
readMaybe(Token.NAME, "executeonly");
readMaybe(Token.NAME, "readonly");
read(Token.NAME, "def");
break;
case "NP":
Expand All @@ -588,6 +589,7 @@ private void parseBinary(byte[] bytes) throws IOException
read(Token.NAME);
read(Token.END_PROC);
readMaybe(Token.NAME, "executeonly");
readMaybe(Token.NAME, "readonly");
read(Token.NAME, "def");
break;
case "RD":
Expand All @@ -596,6 +598,7 @@ private void parseBinary(byte[] bytes) throws IOException
readProcVoid();
readMaybe(Token.NAME, "bind");
readMaybe(Token.NAME, "executeonly");
readMaybe(Token.NAME, "readonly");
read(Token.NAME, "def");
break;
default:
Expand Down

0 comments on commit 4896c6f

Please sign in to comment.