Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35b8a408 authored by big biff's avatar big biff Committed by Gerrit Code Review
Browse files

Merge "twrpDigest: don't crash when zip.md5 file is empty" into android-7.1

parents ced41a4a d1afb52f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ int twrpDigest::verify_md5digest(void) {
		snprintf(hex, 3, "%02x", md5sum[i]);
		md5str += hex;
	}
	if (tokens.at(0) != md5str)
	if (tokens.empty() || tokens.at(0) != md5str)
		return MD5_MATCH_FAIL;

	return MD5_OK;