Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:xen-4.9
xen
xen.vhd_read_block.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xen.vhd_read_block.patch of Package xen
From: Olaf Hering <olaf@aepfle.de> Date: Mon, 15 Jun 2020 20:51:50 +0200 Subject: vhd_read_block libvhd.c: In function 'vhd_read_block': libvhd.c:1876:14: error: 'end' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1876 | size = end - off; Signed-off-by: Olaf Hering <olaf@aepfle.de> --- tools/blktap2/vhd/lib/libvhd.c | 1 + 1 file changed, 1 insertion(+) --- a/tools/blktap2/vhd/lib/libvhd.c +++ b/tools/blktap2/vhd/lib/libvhd.c @@ -1833,24 +1833,25 @@ fail: return err; } int vhd_read_block(vhd_context_t *ctx, uint32_t block, char **bufp) { int err; char *buf; size_t size; uint64_t blk; off_t end, off; + end = 0; buf = NULL; *bufp = NULL; if (!vhd_type_dynamic(ctx)) return -EINVAL; err = vhd_get_bat(ctx); if (err) return err; if (block >= ctx->bat.entries) return -ERANGE;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor