Gonglei
7b50d00911
pcnet: fix Negative array index read
...
s->xmit_pos maybe assigned to a negative value (-1),
but in this branch variable s->xmit_pos as an index to
array s->buffer. Let's add a check for s->xmit_pos.
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-11-21 10:50:54 +00:00
..
2014-11-02 10:04:34 +03:00
2014-11-14 11:11:44 +00:00
2014-10-03 10:30:33 +01:00
2014-11-20 14:58:37 +00:00
2014-09-29 10:20:05 +02:00
2014-11-17 17:22:03 +00:00
2014-08-15 19:12:48 +04:00
2014-11-10 14:58:59 +00:00
2014-11-17 11:41:56 +01:00
2014-11-03 19:51:56 +03:00
2014-10-20 14:02:25 +02:00
2014-10-29 12:01:30 +01:00
2014-09-16 12:35:02 +02:00
2014-11-04 23:26:12 +01:00
2014-09-02 22:38:16 +04:00
2014-11-14 11:11:44 +00:00
2014-11-18 17:36:14 +00:00
2014-09-29 18:48:48 +01:00
2014-11-13 16:13:27 +01:00
2014-08-18 12:06:21 +02:00
2014-10-20 14:02:25 +02:00
2014-10-20 14:02:25 +02:00
2014-11-03 00:59:10 +03:00
2014-09-29 19:44:04 +03:00
2014-11-03 00:59:10 +03:00
2014-11-17 11:41:03 +01:00
2014-10-31 17:02:22 +01:00
2014-09-09 13:41:43 +02:00
2014-11-21 10:50:54 +00:00
2014-11-04 23:26:13 +01:00
2014-11-03 00:59:10 +03:00
2014-11-17 11:49:19 +01:00
2014-10-15 05:03:13 +02:00
2014-09-12 16:55:49 +01:00
2014-10-24 12:19:11 +01:00
2014-11-04 23:26:15 +01:00
2014-10-30 12:59:27 +00:00
2014-11-12 11:19:19 +01:00
2014-10-20 14:02:25 +02:00
2014-10-20 14:02:25 +02:00
2014-10-20 14:02:25 +02:00
2014-10-20 14:02:25 +02:00
2014-08-15 18:54:40 +04:00
2014-09-11 12:20:32 +02:00
2014-10-20 14:02:25 +02:00
2014-11-02 10:04:34 +03:00
2014-09-09 13:41:43 +02:00
2014-11-17 18:02:31 +01:00
2014-11-03 18:32:48 +02:00
2014-08-18 12:06:21 +02:00
2014-10-20 14:02:25 +02:00
2014-10-20 14:02:25 +02:00
2014-11-03 01:00:37 +03:00
2014-06-19 16:41:47 +03:00