numam-dpdk/lib/librte_cmdline
Olivier Matz ac09cd9732 cmdline: fix check in port list parsing
The argument ressize contains the size of the result buffer which
should be large enough to store the parsed result of a token. In
this case, it should be larger or equal to sizeof(cmdline_portlist_t)
(4 bytes), not PORTLIST_TOKEN_SIZE which is the max size of the token
string.

This is not a critical, it fixes cases where the total length of the
parsed instruction is greater than the maximum.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2015-02-20 10:50:16 +01:00
..
2014-06-11 00:29:34 +02:00
2014-06-11 00:29:34 +02:00
2014-12-05 16:54:53 +01:00
2014-12-05 16:54:53 +01:00
2014-06-11 00:29:34 +02:00
2014-06-11 00:29:34 +02:00
2014-11-24 13:17:49 +01:00
2014-06-11 00:29:34 +02:00
2014-06-11 00:29:34 +02:00
2014-06-11 00:29:34 +02:00
2014-11-24 13:17:49 +01:00
2015-02-03 16:56:58 +01:00