On Monday 29 Nov 2021, at 00:05, Anthony Mallet wrote: > 64k is not small, so I still believe it should be on the heap.
In addition, I just noticed that res_nquery(3) in libc/resolv/res_query.c uses a similar buffer but of size min(PACKETSZ, 1024). PACKETSZ seems to be 512 bytes only. So it seems that the two functions are not consistent wrt. the buffer size. Do you think I should PR this?