Re: ipsecctl(8): handle non-null-terminated strings

2023-10-09 Thread Tobias Heider
On Mon, Oct 09, 2023 at 11:55:36PM +0200, Theo Buehler wrote: > On Mon, Oct 09, 2023 at 11:50:14PM +0200, Tobias Heider wrote: > > On Mon, Oct 09, 2023 at 11:24:19PM +0200, Theo Buehler wrote: > > > On Mon, Oct 09, 2023 at 10:49:53PM +0200, Tobias Heider wrote: > > > > ipsecctl wrongly assumes that

Re: ipsecctl(8): handle non-null-terminated strings

2023-10-09 Thread Theo Buehler
On Mon, Oct 09, 2023 at 11:50:14PM +0200, Tobias Heider wrote: > On Mon, Oct 09, 2023 at 11:24:19PM +0200, Theo Buehler wrote: > > On Mon, Oct 09, 2023 at 10:49:53PM +0200, Tobias Heider wrote: > > > ipsecctl wrongly assumes that strings like the pf tag or > > > the identities are always null termi

Re: ipsecctl(8): handle non-null-terminated strings

2023-10-09 Thread Tobias Heider
On Mon, Oct 09, 2023 at 11:24:19PM +0200, Theo Buehler wrote: > On Mon, Oct 09, 2023 at 10:49:53PM +0200, Tobias Heider wrote: > > ipsecctl wrongly assumes that strings like the pf tag or > > the identities are always null terminated. > > The diff below fixes the cases that always kill my > > ipsec

Re: ipsecctl(8): handle non-null-terminated strings

2023-10-09 Thread Theo Buehler
On Mon, Oct 09, 2023 at 10:49:53PM +0200, Tobias Heider wrote: > ipsecctl wrongly assumes that strings like the pf tag or > the identities are always null terminated. > The diff below fixes the cases that always kill my > ipsecctl -m when running a fuzzer. > > ok? > > Index: pfkdump.c > =

ipsecctl(8): handle non-null-terminated strings

2023-10-09 Thread Tobias Heider
ipsecctl wrongly assumes that strings like the pf tag or the identities are always null terminated. The diff below fixes the cases that always kill my ipsecctl -m when running a fuzzer. ok? Index: pfkdump.c === RCS file: /mount/openb