[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #51729] lwip_itoa: fix converting 0
From: |
David GIRAULT |
Subject: |
[lwip-devel] [bug #51729] lwip_itoa: fix converting 0 |
Date: |
Tue, 19 Dec 2017 07:07:24 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36 |
Follow-up Comment #3, bug #51729 (project lwip):
lwip_itoa is still buggy! converting 0 is fixed (the bad way) but the
following case still fail:
char buf[4];
lwip_itoa(buf, 4, 168);
It returns "68" in buf ! The same for 192. Returns "92" !
As it is use that way in mdns_build_reverse_v4_domain(), this result in BADLY
encoded PTR answer in mDNS responder.
You may use an in-stack temporary buffer with enough space if required, but be
able to convert numbers > 100 with a 4 char buffer.
Please re-open this bug.
Regards,
David
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?51729>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #51729] lwip_itoa: fix converting 0,
David GIRAULT <=