Re: [PATCH] commands: of_property: fix crashes on incorrect number of arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 30, 2020 at 04:33:55PM +0200, Ahmad Fatoum wrote:
> of_property needs at least two parameters, the path and the property
> name. If we supply less, we risk crashes, e.g. by running
> of_property -fs /test
> 
> Verify we got at least two parameters.
> 
> Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx>
> ---
>  commands/of_property.c | 11 ++++-------
>  1 file changed, 4 insertions(+), 7 deletions(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux