Thread (1 message) 1 message, 1 author, 2015-02-20

Re: [PATCH] cmdline: fix ressize in parse_portlist

From: Thomas Monjalon <hidden>
Date: 2015-02-20 09:52:11

2015-02-04 10:49, Olivier Matz:
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 <redacted>
Applied, thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help