NLnetLabs / simdzone

Fast and standards compliant DNS zone parser
BSD 3-Clause "New" or "Revised" License
63 stars 11 forks source link

Include head of rdata buffer in internal `rdata_t` #173

Open k0ekk0ek opened 5 months ago

k0ekk0ek commented 5 months ago

The per-RR structure used to track current offset (tail) and limit, introduced to make it easier to define a custom window when parsing SVCB parameters as they may need to get reordered, should include the head of the buffer as well. This would allow for better verification (asserts or otherwise) of correct buffer management. Especially when we implement support for using multiple buffers so that the parsing and database inclusion can be done in parallel.