Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatthias Dressel <code@deadcode.eu>2021-02-08 06:48:46 +0300
committerMatthias Dressel <code@deadcode.eu>2021-02-08 06:48:46 +0300
commit061ac9aee82da23ebba5321f0625cac8bcb615ff (patch)
treee19a1cbb5770141403ccee8300e58e585728bae8 /tools
parent93319cefed4144bbecb87788da22ed76f651704b (diff)
cli: Fix md5 verification for short values
Verification should not succeed if the given string is too short to be a real hash. Fixes videolan/dav1d#361
Diffstat (limited to 'tools')
-rw-r--r--tools/output/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/output/md5.c b/tools/output/md5.c
index ffcbc6c..7d192c2 100644
--- a/tools/output/md5.c
+++ b/tools/output/md5.c
@@ -283,7 +283,7 @@ static int md5_verify(MD5Context *const md5, const char *md5_str) {
md5_finish(md5);
if (strlen(md5_str) < 32)
- return 0;
+ return -1;
uint32_t abcd[4] = { 0 };
char t[3] = { 0 };