Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #105 from firstfan/master
Browse files Browse the repository at this point in the history
Fix issue #104, getApkV2Singers crash
  • Loading branch information
hsiafan authored Nov 1, 2019
2 parents 0f08969 + c07d04b commit 8e84846
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ApkSignBlockParser(ByteBuffer data) {
public ApkSigningBlock parse() throws CertificateException {
// sign block found, read pairs
List<SignerBlock> signerBlocks = new ArrayList<>();
while (data.hasRemaining()) {
while (data.remaining() >= 8) {
int id = data.getInt();
int size = Unsigned.ensureUInt(data.getInt());
if (id == ApkSigningBlock.SIGNING_V2_ID) {
Expand Down

0 comments on commit 8e84846

Please sign in to comment.