projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix FIQ bank switching.
[qemu]
/
block-vpc.c
diff --git
a/block-vpc.c
b/block-vpc.c
index
88ad575
..
e4c51ba
100644
(file)
--- a/
block-vpc.c
+++ b/
block-vpc.c
@@
-81,9
+81,8
@@
typedef struct BDRVVPCState {
static int vpc_probe(const uint8_t *buf, int buf_size, const char *filename)
{
- if (!strncmp(buf, "conectix", 8))
+ if (buf_size >= 8 && !strncmp(buf, "conectix", 8))
return 100;
-
return 0;
}