[Toybox] [PATCH] host: fix duplicate strings.

Rob Landley rob at landley.net
Fri Aug 9 10:43:28 PDT 2024


On 8/2/24 15:50, enh via Toybox wrote:
> Fixes #396 and theoretically the same bug but for AAAA records, though
> in practice `toybox host www.google.com` isn't showing me AAAA records
> like `host www.google.com` does.

Sorry, I was in canada for 4 days, just got back. Shoveling out...

I fixed it up here when I saw your poke, but the problem is the only test domain
I can remember returning txt records off the top of my head is cnn, and:

$ toybox host -ttxt cnn.com
host: tilt

It's not parsing the output properly with or without the fix, need to dig into
why. (It's the if (alen-(p-abuf)<10) error_exit("tilt"); test on line 151, the
packet has 2 bytes left not 10 at that point. Alas it's not one I can fix
without net access so got punted from 3 work sessions...)

Rob


More information about the Toybox mailing list