Skip to content

Commit 8c0020b

Browse files
Scott KirkwoodCommit Bot
authored andcommitted
Add new limits for extra field, updated test file.
Bug: 775160 Change-Id: Ic0f2a818386c78cf7b610035f7841f08e5477ab9 Reviewed-on: https://chromium-review.googlesource.com/723783 Reviewed-by: Peter Kotwicz <[email protected]> Commit-Queue: Scott Kirkwood <[email protected]> Cr-Commit-Position: refs/heads/master@{#509491}
1 parent c58b83f commit 8c0020b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

chrome/android/webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkVerifySignature.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public class WebApkVerifySignature {
8383
/** Maximum file comment length permitted. */
8484
private static final int MAX_FILE_COMMENT_LENGTH = 0;
8585

86-
/** Maximum extra field length permitted. */
87-
private static final int MAX_EXTRA_LENGTH = 8;
86+
/** Maximum extra field length permitted.
87+
* Support .so alignment and a 64 bytes bytes for any extras. */
88+
private static final int MAX_EXTRA_LENGTH = 4096 + 64;
8889

8990
/** The memory buffer we are going to read the zip from. */
9091
private final ByteBuffer mBuffer;
Binary file not shown.

0 commit comments

Comments
 (0)