From: Tom Rini Date: Fri, 13 Mar 2020 13:25:24 -0400 Subject: [PATCH 1/1] fit: check return value of fit_image_get_data_size() In-Reply-To: <20200311205108.52443-1-xypron.glpk@gmx.de> References: <20200311205108.52443-1-xypron.glpk@gmx.de> Message-ID: <20200313172524.GJ12423@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 11, 2020 at 09:51:08PM +0100, Heinrich Schuchardt wrote: > GCC-10 reports: > > In file included from tools/common/image-fit.c:1: > include/image.h: In function ?fit_image_get_data_and_size?: > ./tools/../common/image-fit.c:1015:9: warning: ?len? may be used > uninitialized in this function [-Wmaybe-uninitialized] > 1015 | *size = len; > | ~~~~~~^~~~~ > ./tools/../common/image-fit.c:996:6: note: ?len? was declared here > 996 | int len; > | ^~~ > > Add the missing check of the return value of fit_image_get_data_size(). > > Fixes: c3c863880479 ("add FIT data-position & data-offset property support") > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Goldschmidt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: