Skip to content

Commit

Permalink
Fix issue hsiafan#104, getApkV2Singers crash
Browse files Browse the repository at this point in the history
  • Loading branch information
asssssssssssssss committed Oct 31, 2019
1 parent ad7140c commit c07d04b
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 c07d04b

Please sign in to comment.