Merge pull request #31580 from poettering/resolved-naptr

resolved: properly decode NAPTR RRs
This commit is contained in:
Luca Boccassi
2024-03-06 14:14:11 +00:00
committed by GitHub
6 changed files with 339 additions and 1 deletions
+6
View File
@@ -451,6 +451,12 @@ char* octescape(const char *s, size_t len) {
assert(s || len == 0);
if (len == SIZE_MAX)
len = strlen(s);
if (len > (SIZE_MAX)-1/4)
return NULL;
t = buf = new(char, len * 4 + 1);
if (!buf)
return NULL;