Re: [OpenWrt-Devel] [PATCH fstools] block: validate amount of arguments for the "autofs" command

2018-12-09 Thread Paul Oranje
Small remark. > Op 7 dec. 2018, om 17:26 heeft Rafał Miłecki het volgende > geschreven: > > From: Rafał Miłecki > > Using argv[3] without checking argc value could result in undefined > behavior. It could result in a crash or accessing a NULL that separates > argv from envp on UNIX. > >

Re: [OpenWrt-Devel] [PATCH fstools] block: validate amount of arguments for the "autofs" command

2018-12-07 Thread John Crispin
nitpickering ... On 07/12/2018 17:26, Rafał Miłecki wrote: From: Rafał Miłecki Using argv[3] without checking argc value could result in undefined behavior. It could result in a crash or accessing a NULL that separates argv from envp on UNIX. Signed-off-by: Rafał Miłecki --- block.c | 6

[OpenWrt-Devel] [PATCH fstools] block: validate amount of arguments for the "autofs" command

2018-12-07 Thread Rafał Miłecki
From: Rafał Miłecki Using argv[3] without checking argc value could result in undefined behavior. It could result in a crash or accessing a NULL that separates argv from envp on UNIX. Signed-off-by: Rafał Miłecki --- block.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff