diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-02-02 13:39:55 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2021-02-08 10:55:15 +0000 |
commit | 6e3dd7571705e7a396b21a39894903083bfb23f9 (patch) | |
tree | 67572dec91b154c502b98e634a90073eb23aa11b /chardev | |
parent | 46bae04a860ebfe331fc6147ed20bcb8d361755d (diff) |
gdbstub: Fix handle_query_xfer_auxv
The main problem was that we were treating a guest address
as a host address with a mere cast.
Use the correct interface for accessing guest memory. Do not
allow offset == auxv_len, which would result in an empty packet.
Fixes: 51c623b0de1 ("gdbstub: add support to Xfer:auxv:read: packet")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210128201831.534033-1-richard.henderson@linaro.org>
Message-Id: <20210202134001.25738-11-alex.bennee@linaro.org>
Diffstat (limited to 'chardev')
0 files changed, 0 insertions, 0 deletions