summary refs log tree commit diff stats
path: root/scripts/qapi.py
diff options
context:
space:
mode:
authorTyler Hall <tylerwhall@gmail.com>2012-07-25 18:45:03 -0400
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-08-03 14:25:22 +0100
commitadb2a9b5d4d5170f0b58b9f92f816048f6b8932b (patch)
tree46fb2c31f99563b7c13c558f04c5f44cfe33fbed /scripts/qapi.py
parent8715fc1e4caee09bde28f8e6844ad1a3bfe52f0e (diff)
downloadfocaccia-qemu-adb2a9b5d4d5170f0b58b9f92f816048f6b8932b.tar.gz
focaccia-qemu-adb2a9b5d4d5170f0b58b9f92f816048f6b8932b.zip
exec.c: Fix off-by-one error in register_subpage
subpage_register() expects "end" to be the last byte in the mapping.
Registering a non-page-aligned memory region that extends up to or
beyond a page boundary causes subpage_register() to silently fail
through the (end >= PAGE_SIZE) check.

This bug does not cause noticeable problems for mappings that do not
extend to a page boundary, though they do register an extra byte.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions