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-09-29 10:20:05 +02: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-04 23:26:12 +01:00
2014-09-02 22:38:16 +04:00
2014-11-13 16:13:27 +01:00
2014-10-31 17:02:22 +01:00
2014-11-21 10:50:54 +00:00
2014-11-04 23:26:13 +01:00
2014-11-17 11:49:19 +01:00
2014-10-24 12:19:11 +01:00
2014-11-04 23:26:15 +01:00