Stefan Weil 8139626643 lm4549: Fix buffer overflow
Report from smatch:
lm4549.c:234 lm4549_write_samples(14) error:
 buffer overflow 's->buffer' 1024 <= 1024

There must be enough space to add two entries starting with index
s->buffer_level, therefore the old check was wrong.

[Peter Maydell <peter.maydell@linaro.org> clarifies the nature of the
analyser warning:

I don't object to making the change to placate the analyser,
but I don't think this is actually a buffer overrun. We always
add and remove samples from the buffer two at a time, so it's
not possible to get here with s->buffer_level == BUFFER_SIZE-1
(which is the only case where the old and new conditions
give different answers).]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
2012-09-23 07:11:28 +01:00
2012-09-12 15:50:09 +02:00
2012-09-23 07:11:28 +01:00
2012-08-28 20:38:39 +02:00
2012-08-20 11:05:08 -03:00
2012-08-28 20:38:39 +02:00
2012-09-21 19:53:17 +02:00
2012-09-07 09:02:44 +03:00
2012-07-07 09:04:42 +00:00
2011-08-27 15:42:35 +00:00
2012-08-04 15:51:23 +00:00
2012-08-13 13:20:50 -03:00
2012-09-05 15:48:57 -03:00
2012-08-02 18:12:17 +02:00
2012-09-15 15:34:27 +00:00
2012-08-16 13:41:16 -05:00
2012-07-28 09:23:11 +00:00
2009-09-12 07:36:22 +00:00
2012-08-13 14:17:53 -03:00
2012-09-05 15:48:57 -03:00
2012-09-22 17:59:12 +00:00
2012-09-05 15:48:57 -03:00
2012-09-05 15:48:57 -03:00
2012-09-05 15:48:57 -03:00
2012-09-09 17:03:09 +03:00
2012-09-10 15:29:51 +03:00
2012-09-08 09:09:06 +00:00
2012-08-08 13:51:12 +02:00
2012-08-03 18:28:37 -05:00
2012-07-10 18:27:33 +02:00
2012-08-08 13:51:12 +02:00
2012-07-14 11:53:03 +00:00
2012-07-14 11:53:03 +00:00
2012-08-16 13:41:16 -05:00
2012-08-16 13:41:16 -05:00
2012-08-13 14:17:53 -03:00
2012-08-13 14:17:53 -03:00
2012-08-16 13:41:15 -05:00
2012-08-16 13:41:15 -05:00
2012-09-05 15:48:57 -03:00
2011-10-31 21:52:17 +01:00
2012-09-05 11:44:53 -05:00
2012-09-10 13:52:28 -05:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.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%