Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
xen.10696
CVE-2018-18438-qemuu-009-integer-overflow-in-cc...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2018-18438-qemuu-009-integer-overflow-in-ccid_card_vscard_read-allows-memory-corruption.patch of Package xen.10696
References: bsc#1112188 CVE-2018-18438 Suggested-by: Paolo Bonzini <address@hidden> Signed-off-by: Philippe Mathieu-Daudé <address@hidden> --- chardev/char-fe.c | 8 ++++---- chardev/char-win-stdio.c | 2 +- chardev/char-win.c | 2 +- include/chardev/char-fe.h | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) Index: xen-4.5.5-testing/tools/qemu-xen-dir-remote/qemu-char.c =================================================================== --- xen-4.5.5-testing.orig/tools/qemu-xen-dir-remote/qemu-char.c +++ xen-4.5.5-testing/tools/qemu-xen-dir-remote/qemu-char.c @@ -113,12 +113,12 @@ void qemu_chr_be_generic_open(CharDriver qemu_chr_be_event(s, CHR_EVENT_OPENED); } -int qemu_chr_fe_write(CharDriverState *s, const uint8_t *buf, int len) +size_t qemu_chr_fe_write(CharDriverState *s, const uint8_t *buf, size_t len) { return s->chr_write(s, buf, len); } -int qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, int len) +size_t qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, size_t len) { int offset = 0; int res; @@ -1722,7 +1722,7 @@ static int win_chr_init(CharDriverState return -1; } -static int win_chr_write(CharDriverState *chr, const uint8_t *buf, int len1) +static size_t win_chr_write(CharDriverState *chr, const uint8_t *buf, size_t len1) { WinCharState *s = chr->opaque; DWORD len, ret, size, err; @@ -1951,7 +1951,7 @@ static CharDriverState *qemu_chr_open_wi return qemu_chr_open_win_file(GetStdHandle(STD_OUTPUT_HANDLE)); } -static int win_stdio_write(CharDriverState *chr, const uint8_t *buf, int len) +static size_t win_stdio_write(CharDriverState *chr, const uint8_t *buf, size_t len) { HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); DWORD dwSize; Index: xen-4.5.5-testing/tools/qemu-xen-dir-remote/include/sysemu/char.h =================================================================== --- xen-4.5.5-testing.orig/tools/qemu-xen-dir-remote/include/sysemu/char.h +++ xen-4.5.5-testing/tools/qemu-xen-dir-remote/include/sysemu/char.h @@ -171,7 +171,7 @@ int qemu_chr_fe_add_watch(CharDriverStat * * Returns: the number of bytes consumed */ -int qemu_chr_fe_write(CharDriverState *s, const uint8_t *buf, int len); +size_t qemu_chr_fe_write(CharDriverState *s, const uint8_t *buf, size_t len); /** * @qemu_chr_fe_write_all: @@ -186,7 +186,7 @@ int qemu_chr_fe_write(CharDriverState *s * * Returns: the number of bytes consumed */ -int qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, int len); +size_t qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, size_t len); /** * @qemu_chr_fe_ioctl:
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