Skip to content

Commit f9a91c4

Browse files
committed
Add new limits for extra field, updated test file.
[email protected] (cherry picked from commit 8c0020b) 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-Original-Commit-Position: refs/heads/master@{#509491} Reviewed-on: https://chromium-review.googlesource.com/725526 Reviewed-by: agrieve <[email protected]> Cr-Commit-Position: refs/branch-heads/3239@{#52} Cr-Branched-From: adb61db-refs/heads/master@{#508578}
1 parent a80e60e commit f9a91c4

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)