diff options
| author | Christoph Hellwig <hch@lst.de> | 2009-07-20 01:19:25 +0200 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-22 10:58:47 -0500 |
| commit | cf070d7ec0b8fb21faa9a630ed5cc66f90844a08 (patch) | |
| tree | dfd7df71b93c243ab24abd06447525532cb7cec3 /hw/virtio-net.c | |
| parent | a7824a886ed50eb4fe3c6fcd6afd8814a6973583 (diff) | |
| download | focaccia-qemu-cf070d7ec0b8fb21faa9a630ed5cc66f90844a08.tar.gz focaccia-qemu-cf070d7ec0b8fb21faa9a630ed5cc66f90844a08.zip | |
qemu-io: reject invalid pattern
Replace the use of atoi which is used for pattern parsing currently with strtol. Atoi won't parse sedecimal pattern values (it always returns 0), but qemu-iotests use such pattern values. Also reject every pattern that is not a unsigned char as we pass the pattern to memset which expect a bye value (despite having the pattern argument declared as int). Based on an earlier patch by Stefan Weil which did not include the error handling. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-net.c')
0 files changed, 0 insertions, 0 deletions