This commit is contained in:
committed by
Git OBS Bridge
parent
013cf62680
commit
0477e22fd2
@@ -404,3 +404,31 @@ Index: xen-3.1-testing/tools/blktap/drivers/tapdisk.c
|
||||
tap_fd = open(devname, O_RDWR);
|
||||
if (tap_fd == -1)
|
||||
{
|
||||
Index: xen-3.1-testing/tools/libxc/xc_core.c
|
||||
===================================================================
|
||||
--- xen-3.1-testing.orig/tools/libxc/xc_core.c
|
||||
+++ xen-3.1-testing/tools/libxc/xc_core.c
|
||||
@@ -156,7 +156,7 @@ struct xc_core_section_headers {
|
||||
Elf64_Shdr *shdrs;
|
||||
};
|
||||
#define SHDR_INIT 16
|
||||
-#define SHDR_INC 4
|
||||
+#define SHDR_INC 4U
|
||||
|
||||
static struct xc_core_section_headers*
|
||||
xc_core_shdr_init(void)
|
||||
Index: xen-3.1-testing/tools/libxc/xc_dom_elfloader.c
|
||||
===================================================================
|
||||
--- xen-3.1-testing.orig/tools/libxc/xc_dom_elfloader.c
|
||||
+++ xen-3.1-testing/tools/libxc/xc_dom_elfloader.c
|
||||
@@ -195,8 +195,9 @@ static int xc_dom_load_elf_symtab(struct
|
||||
|
||||
if ( load )
|
||||
{
|
||||
+ void * dst = (void*)elf_section_start(&syms, shdr);
|
||||
shdr2 = elf_shdr_by_index(elf, h);
|
||||
- memcpy((void*)elf_section_start(&syms, shdr),
|
||||
+ memcpy(dst,
|
||||
elf_section_start(elf, shdr2),
|
||||
size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user