|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH v2 3/3] usb/dev-mtp: Fix use of uninitialized values |
Date: | Tue, 5 Jun 2018 11:21:58 +0200 |
User-agent: | NeoMutt/20180512 |
> + for (i = c->argc; i < ARRAY_SIZE(c->argv); i++) { > + c->argv[i] = 0; > + } I think the code filling c->argv (in usb_mtp_handle_data) should so that. Or just memset(0) cmd in usb_mtp_handle_data ... cheers, Gerd PS: the other patches are fine.
[Prev in Thread] | Current Thread | [Next in Thread] |