Re: [dpdk-dev] [PATCH] cfgfile: avoid stack buffer underflow

2020-07-02 Thread Bruce Richardson
On Wed, Jul 01, 2020 at 08:05:58PM -0700, Stephen Hemminger wrote: > If cfgfile is give a line with comment character at the start > of the line, it will dereference outside of the buffer. > > Detected with address sanitizer: > > SUMMARY: AddressSanitizer: stack-buffer-underflow > lib/librte_cfg

[dpdk-dev] [PATCH] cfgfile: avoid stack buffer underflow

2020-07-01 Thread Stephen Hemminger
If cfgfile is give a line with comment character at the start of the line, it will dereference outside of the buffer. Detected with address sanitizer: SUMMARY: AddressSanitizer: stack-buffer-underflow lib/librte_cfgfile/rte_cfgfile.c:194 in rte_cfgfile_load_with_params Shadow bytes around the bu