[Hostname-devel] Off-by-one bug?

geoff geoff at gxwtech.com
Wed Jun 21 19:24:54 UTC 2017


Greetings all,

I took a look at the source code for hostname for another purpose, but I
see that there appears to be an off-by-one bug in check_name().  The
loop will be looking at name[-1] on the first iteration.

Can someone confirm?

--G




More information about the Hostname-devel mailing list