diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-03-31 20:04:41 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-02 18:08:59 +0200 |
| commit | e497e6a55786a62ffe009a3fe2fa6d40e6080210 (patch) | |
| tree | 63d9a35821dfdfaa5ce4d3ca25f5a6d2a50ba61b /hw/net/virtio-net.c | |
| parent | 1d1ee7e0a1b7041804e8c5f8c2453fdc2df0407e (diff) | |
| download | focaccia-qemu-e497e6a55786a62ffe009a3fe2fa6d40e6080210.tar.gz focaccia-qemu-e497e6a55786a62ffe009a3fe2fa6d40e6080210.zip | |
lsi53c895a: avoid out of bounds access to s->msg[]
If no bytes are there to process in the message in phase, the input data latch (s->sidl) is set to s->msg[-1]. Just do nothing since no DMA is performed. Reported-by: Chuhong Yuan <hslester96@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions