+++ b/libxo/libxo.c
@@ -8104,6 +8104,8 @@ xo_parse_args (int argc, char **argv)
cp = strrchr(xo_program, '/');
if (cp)
xo_program = ++cp;
+else
+ cp = argv[0]; /* Reset to front of string */
/* GNU tools add an annoying ".test" as the program extension;
On 7 Nov 2019, at 11:03, Arnaud Ysmal wrote:
> Looks cleaner than the unconst.
I've spun a new release (1.3.1) and am importing it now. Building...
Thanks,
Phil
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinf
My bad. Will role a fix asap.
Thanks,
Phil
On 7 Nov 2019, at 10:08, Arnaud Ysmal wrote:
Hi,
I just got the same issue, it happens when argv[0] does not contain a
/ (calling uptime segfault but calling /usr/bin/uptime works).
In xo_parse_args there is no check whether cp is NULL before c
On 5 Apr 2019, at 15:03, Cy Schubert wrote:
> Add arp(8) broken by the libxo import. It's broken at line 603 of
> libxo.c as well. A NULL pointer deref.
Apologies. I have a fix in hand. Will commit shortly.
Thanks,
Phil
___
freebsd-current@freebsd.or