Michael S. Tsirkin 52f91c3723 zaurus: fix buffer overrun on invalid state load
CVE-2013-4540

Within scoop_gpio_handler_update, if prev_level has a high bit set, then
we get bit > 16 and that causes a buffer overrun.

Since prev_level comes from wire indirectly, this can
happen on invalid state load.

Similarly for gpio_level and gpio_dir.

To fix, limit to 16 bit.

Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2014-05-05 22:15:02 +02:00
2014-04-23 10:28:14 +02:00
2014-05-01 16:02:45 +01:00
2014-04-25 12:59:57 +02:00
2014-04-28 13:43:17 +01:00
2014-04-28 08:55:31 +04:00
2014-04-25 09:19:58 -04:00
2014-04-30 14:39:58 +02:00
2014-04-28 11:06:35 -07:00
2014-05-02 10:50:58 +01:00
2014-04-28 13:43:17 +01:00
2014-04-28 08:55:31 +04:00
2014-03-12 17:26:32 +01:00
2014-04-30 11:05:00 +02:00
2014-03-19 19:47:15 +01:00
2014-03-13 14:42:24 +01:00
2014-03-27 15:19:00 +05:30
2014-03-13 14:34:16 +00:00
2014-04-18 10:33:36 +04:00
2014-03-27 15:19:00 +05:30
2014-04-22 12:00:20 +02:00
2014-04-22 12:00:20 +02:00
2014-04-28 13:43:17 +01:00
2014-04-17 20:39:32 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%