Remove arbitrary workspace size limit.

I have no memory for why this was ever there. It breaks DNSSEC
validation of large RRsets.

I can't see any DoS potential that is exposed by removing it.
This commit is contained in:
Simon Kelley
2025-01-07 21:41:30 +00:00
parent 12e4565fef
commit 275f4a4475

View File

@@ -345,9 +345,6 @@ int expand_workspace(unsigned char ***wkspc, int *szp, int new)
if (old >= new+1) if (old >= new+1)
return 1; return 1;
if (new >= 100)
return 0;
new += 5; new += 5;
if (!(p = whine_realloc(*wkspc, new * sizeof(unsigned char *)))) if (!(p = whine_realloc(*wkspc, new * sizeof(unsigned char *))))