Open jmaygarden opened 4 months ago
The name parsing uses a u16 offset and recurses without checking if the value is zero. That may cause an infinite loop that blows up the stack and crashes the process.
u16
See https://github.com/tailhook/dns-parser/commit/c840c1715a322d4f99c8dc927277070b3df63726 for a fix.
Thanks, I'll try and get this integrated this weekend. Medium-term I think it would be best for this library to switch to a maintained external DNS serialization library though.
The name parsing uses a
u16
offset and recurses without checking if the value is zero. That may cause an infinite loop that blows up the stack and crashes the process.See https://github.com/tailhook/dns-parser/commit/c840c1715a322d4f99c8dc927277070b3df63726 for a fix.