[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] [PATCH] Verify name is allocated in hostname.c/parse
Alfred M. Szmidt
Re: [bug-inetutils] [PATCH] Verify name is allocated in hostname.c/parse_args
Thu, 22 Jun 2017 04:13:44 -0400
This change adds a test at the end of parse_args that exits if name was
not allocated, i.e. if name is still NULL.
Thank you for you bug report!
parse_file returning NULL is valid in case of a munged input.
The right place is to make sure that the callee for parse_name
(i.e. set_name) handles the NULL case properly. Would you like to
submit a patch that does that?