Re: snmpd(8): Application.c properly initialize oidbuf for appl_region

2022-06-27 Thread Theo Buehler
On Mon, Jun 27, 2022 at 12:11:42PM +0200, Martijn van Duren wrote: > When registering a region in appl_region (through appl_register) we > fill oidbuf with strlcat, but we don't start from a clean state and > might have garbage prepended. > > This oidbuf is only used on error-conditions, so it's

snmpd(8): Application.c properly initialize oidbuf for appl_region

2022-06-27 Thread Martijn van Duren
When registering a region in appl_region (through appl_register) we fill oidbuf with strlcat, but we don't start from a clean state and might have garbage prepended. This oidbuf is only used on error-conditions, so it's unlikely to trigger with the current code. Diff below properly initializes