[ldns-users] [PATCH 0/2] allocation errors in packet parsing

Jan Vcelak jv at fcelda.cz
Tue Apr 4 14:28:54 UTC 2017


Hello,

the attached patches fix some issues in ldns_wire2pkt function.

I don't exactly remember the circumstance of finding the first problem
because the patch has been laying in my repository for a while. But
the fix is pretty obvious.

The second patch fixes memory leak when parsing malformed packet that
contains multiple EDNS records. The old EDNS buffer needs to be
deallocated first.

(The patches apply cleanly on develop branch.)

Regards,

Jan


Jan Vcelak (2):
  ldns_wire2pkt: fix null pointer dereference if pkt allocation fails
  ldns_wire2pkt: fix memory leak with more EDNS sections

 wire2host.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.12.2




More information about the ldns-users mailing list