hexdecoct: make unbase64mem and unhexmem always use SIZE_MAX

This commit is contained in:
Mike Yuan
2024-01-09 03:59:15 +09:00
committed by Yu Watanabe
parent 7f13af72f8
commit bdd2036e81
39 changed files with 86 additions and 84 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ int pattern_match(const char *pattern, const char *s, InstanceMetadata *ret) {
if (strlen(t) != sizeof(found.sha256sum) * 2)
goto nope;
r = unhexmem(t, sizeof(found.sha256sum) * 2, &d, &l);
r = unhexmem_full(t, sizeof(found.sha256sum) * 2, /* secure = */ false, &d, &l);
if (r == -ENOMEM)
return r;
if (r < 0)