Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group 'com.adscore'
version '1.0.4'
version '1.0.5'

sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private HashMap<String, Object> parse4(String signature)
if (v.containsKey("v")) {
data.put(fieldTypeDef.getName(), v.get("v"));
} else {
throw new Error("premature end of signature 0x03");
throw new SignatureVerificationException("premature end of signature 0x03");
}
signature = SignatureVerifierUtils.substr(signature, 3);
break;
Expand All @@ -321,14 +321,14 @@ private HashMap<String, Object> parse4(String signature)
if (v.containsKey("v")) {
data.put(fieldTypeDef.getName(), v.get("v"));
} else {
throw new Error("premature end of signature 0x04");
throw new SignatureVerificationException("premature end of signature 0x04");
}
signature = SignatureVerifierUtils.substr(signature, 5);
break;
case "string":
l = Unpacker.unpack("Cx/nl", signature).getData();
if (!l.containsKey("l")) {
throw new Error("premature end of signature 0x05");
throw new SignatureVerificationException("premature end of signature 0x05");
}
if ((SignatureVerifierUtils.characterToInt(l.get("l")) & 0x8000) > 0) {
int newl = SignatureVerifierUtils.characterToInt(l.get("l")) & 0xFF;
Expand Down