hexdecoct: make unbase64mem and unhexmem always use SIZE_MAX
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user