summaryrefslogtreecommitdiffstats
path: root/qemud
diff options
context:
space:
mode:
authorYu Ning <yu.ning@intel.com>2015-07-16 14:54:04 +0800
committerKonstantinos Menychtas <kmenychtas@google.com>2015-07-21 16:55:13 +0000
commit3840dbf546a311e7792d8ebde6202028d12f789a (patch)
tree4544ac7a6ff17ecb2078e2c7c700d217598ad692 /qemud
parentaa028a3c593319d085b43f3fcc78b571524d6de2 (diff)
downloadandroid_device_generic_goldfish-3840dbf546a311e7792d8ebde6202028d12f789a.tar.gz
android_device_generic_goldfish-3840dbf546a311e7792d8ebde6202028d12f789a.tar.bz2
android_device_generic_goldfish-3840dbf546a311e7792d8ebde6202028d12f789a.zip
DO NOT MERGE opengl: Fix QemuPipeStream::readFully reading beyond end of buffer
When GPU emulation is enabled, the emulator sometimes freezes, with an error message in logcat similar to the following: QemuPipeStream::readFully failed (buf 0x7f9cd8ab8000): Bad address Some users have reported the same issue, e.g.: https://code.google.com/p/android/issues/detail?id=170633 The root cause is that QemuPipeStream::readFully(void *buf, size_t len) may attempt to read beyond (buf + len), resulting in a -EFAULT return value from the goldfish/qemu pipe driver. Fix this bug to improve the stability of the emulator. In addition, - Add more information to the said error message to facilitate future debugging. - Use "%zu" instead of "%d" for logging size_t variables. Change-Id: I8785fee0427fd6c0f25237470b346e769a82c992 Signed-off-by: Yu Ning <yu.ning@intel.com> Signed-off-by: Pengcheng Chen <pengcheng.chen@intel.com>
Diffstat (limited to 'qemud')
0 files changed, 0 insertions, 0 deletions