[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.5] libxc: fix usage of uninitialized variable
commit 2bc9bd9483b254a80b7f83408f45aa1c6ef17ef3 Author: Roger Pau Monne <roger.pau@xxxxxxxxxx> AuthorDate: Tue Apr 26 12:07:49 2016 +0200 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Mon May 9 18:08:31 2016 +0100 libxc: fix usage of uninitialized variable *size should be used instead, because it contains the size of the buffer in out_buf. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> (cherry picked from commit 13b3d3505c3ea9a881e9733be8b47f7b17a5bdde) (cherry picked from commit 39546d1360d954c2d0e2ff71dc74851e7081f61f) --- tools/libxc/xc_dom_bzimageloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_dom_bzimageloader.c b/tools/libxc/xc_dom_bzimageloader.c index 964ebdc..1f634b7 100644 --- a/tools/libxc/xc_dom_bzimageloader.c +++ b/tools/libxc/xc_dom_bzimageloader.c @@ -480,7 +480,7 @@ static int xc_try_lzo1x_decode( if ( !dst_len ) { msg = "Error registering stream output"; - if ( xc_dom_register_external(dom, out_buf, out_len) ) + if ( xc_dom_register_external(dom, out_buf, *size) ) break; return 0; -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.5 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |