Re: [dpdk-dev] [PATCH v1] app/regex: fix segfault in getopt_long call

2020-10-19 Thread Thomas Monjalon
19/10/2020 10:39, Ophir Munk: > Adding Thomas Monjalon > Thomas - when merging can you please remove the line: Cc: sta...@dpdk.org ? No it should be kept because the bug is in a previous release.

Re: [dpdk-dev] [PATCH v1] app/regex: fix segfault in getopt_long call

2020-10-19 Thread Ophir Munk
dpdk.org; "'Lukasz Wojciechowski'", > > Subject: Re: [dpdk-dev] [PATCH v1] app/regex: fix segfault in getopt_long > call > > Hi, > > W dniu 19.10.2020 o 09:46, Ori Kam pisze: > > Hi Ophir, > > > >> -Original Message- > >&

Re: [dpdk-dev] [PATCH v1] app/regex: fix segfault in getopt_long call

2020-10-19 Thread Lukasz Wojciechowski
Hi, W dniu 19.10.2020 o 09:46, Ori Kam pisze: > Hi Ophir, > >> -Original Message- >> From: Ophir Munk >> Sent: Sunday, October 18, 2020 5:22 PM >> Subject: [PATCH v1] app/regex: fix segfault in getopt_long call >> >> getopt_long() parses command-line arguments. One of its arguments >> 'lo

Re: [dpdk-dev] [PATCH v1] app/regex: fix segfault in getopt_long call

2020-10-19 Thread Ori Kam
Hi Ophir, > -Original Message- > From: Ophir Munk > Sent: Sunday, October 18, 2020 5:22 PM > Subject: [PATCH v1] app/regex: fix segfault in getopt_long call > > getopt_long() parses command-line arguments. One of its arguments > 'longopts' is a pointer to the first element of an array of

[dpdk-dev] [PATCH v1] app/regex: fix segfault in getopt_long call

2020-10-18 Thread Ophir Munk
getopt_long() parses command-line arguments. One of its arguments 'longopts' is a pointer to the first element of an array of struct option. The last element of the array has to be filled with zeros to mark the end of options. For example: struct option longopts[] = { { "help", 0, 0, ARG_HELP},