mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
854f63d440
monitor_fdset_dup_fd_find_remove() and monitor_fdset_dup_fd_find() return mon_fdset->id which is int64_t. Downcasting from int64_t to int leads to a bug with removing fd from fdset with id >= 2^32. So, fix return types for these function. Signed-off-by: Yury Kotov <yury-kotov@yandex-team.ru> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190523094433.30297-1-yury-kotov@yandex-team.ru> Signed-off-by: Markus Armbruster <armbru@redhat.com>
22 lines
326 B
C
22 lines
326 B
C
#include "qemu/osdep.h"
|
|
#include "monitor/monitor.h"
|
|
|
|
int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int64_t monitor_fdset_dup_fd_find(int dup_fd)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int monitor_fdset_get_fd(int64_t fdset_id, int flags)
|
|
{
|
|
return -ENOENT;
|
|
}
|
|
|
|
void monitor_fdset_dup_fd_remove(int dupfd)
|
|
{
|
|
}
|