summaryrefslogtreecommitdiff
path: root/coroutine-gthread.c
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2012-12-17 11:44:02 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-12-17 11:44:02 +0000
commit249e7e0fff080df0eff54730f3b6459d92d61e5a (patch)
tree7db530e15a7a223b0e71c78abc94b1df9df8bfd2 /coroutine-gthread.c
parenta38648290ee277c7cb8a53eabdcdb08bb7a9f23f (diff)
downloadqemu-249e7e0fff080df0eff54730f3b6459d92d61e5a.tar.gz
cpu_ioreq_pio, cpu_ioreq_move: i should be uint32_t rather than int
The current code compare i (int) with req->count (uint32_t) in a for loop, risking an infinite loop if req->count is equal to UINT_MAX. Also i is only used in comparisons or multiplications with unsigned integers. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Dongxiao Xu <dongxiao.xu@intel.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'coroutine-gthread.c')
0 files changed, 0 insertions, 0 deletions