From b94c72ea7fd3c60be235ce9b7b6a0b3fbedfa15c Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 1 Apr 2016 09:50:51 -0700 Subject: [PATCH] Fix APK comparison script. Fixes #5404 // FREEBIE --- apkdiff/apkdiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apkdiff/apkdiff.py b/apkdiff/apkdiff.py index 82d6b474c6..4dbb253994 100755 --- a/apkdiff/apkdiff.py +++ b/apkdiff/apkdiff.py @@ -61,7 +61,7 @@ class ApkDiff: sourceChunk = sourceFile.read(1024) destinationChunk = destinationFile.read(1024) - while sourceChunk != "" and destinationChunk != "": + while sourceChunk != "" or destinationChunk != "": if sourceChunk != destinationChunk: return False