1
The following changes since commit 64175afc695c0672876fbbfc31b299c86d562cb4:
1
The following changes since commit 41192db338588051f21501abc13743e62b0a5605:
2
2
3
arm_gicv3: Fix ICC_BPR1 reset value when EL3 not implemented (2017-06-07 17:21:44 +0100)
3
Merge remote-tracking branch 'remotes/ehabkost-gl/tags/machine-next-pull-request' into staging (2021-01-01 22:57:15 +0000)
4
4
5
are available in the git repository at:
5
are available in the Git repository at:
6
6
7
git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request
7
https://gitlab.com/stefanha/qemu.git tags/block-pull-request
8
8
9
for you to fetch changes up to 56faeb9bb6872b3f926b3b3e0452a70beea10af2:
9
for you to fetch changes up to 593621f36b716eb091c4ec791db72dd4461789da:
10
10
11
block/gluster.c: Handle qdict_array_entries() failure (2017-06-09 08:41:29 -0400)
11
readline: Fix possible array index out of bounds in readline_hist_add() (2021-01-04 11:13:39 +0000)
12
12
13
----------------------------------------------------------------
13
----------------------------------------------------------------
14
Gluster patch
14
Pull request
15
15
----------------------------------------------------------------
16
----------------------------------------------------------------
16
17
17
Peter Maydell (1):
18
Alex Chen (1):
18
block/gluster.c: Handle qdict_array_entries() failure
19
readline: Fix possible array index out of bounds in
20
readline_hist_add()
19
21
20
block/gluster.c | 3 +--
22
util/readline.c | 3 +++
21
1 file changed, 1 insertion(+), 2 deletions(-)
23
1 file changed, 3 insertions(+)
22
24
23
--
25
--
24
2.9.3
26
2.29.2
25
27
26
diff view generated by jsdifflib
1
From: Peter Maydell <peter.maydell@linaro.org>
1
From: Alex Chen <alex.chen@huawei.com>
2
2
3
In qemu_gluster_parse_json(), the call to qdict_array_entries()
3
When the 'cmdline' is the last entry in 'rs->history' array, there is
4
could return a negative error code, which we were ignoring
4
no need to put this entry to the end of the array, partly because it is
5
because we assigned the result to an unsigned variable.
5
the last entry, and partly because the next operition will lead to array
6
Fix this by using the 'int' type instead, which matches the
6
index out of bounds.
7
return type of qdict_array_entries() and also the type
8
we use for the loop enumeration variable 'i'.
9
7
10
(Spotted by Coverity, CID 1360960.)
8
Reported-by: Euler Robot <euler.robot@huawei.com>
9
Signed-off-by: Alex Chen <alex.chen@huawei.com>
10
Message-id: 20201203135043.117072-1-alex.chen@huawei.com
11
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
12
---
13
util/readline.c | 3 +++
14
1 file changed, 3 insertions(+)
11
15
12
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
16
diff --git a/util/readline.c b/util/readline.c
13
Reviewed-by: Eric Blake <eblake@redhat.com>
17
index XXXXXXX..XXXXXXX 100644
14
Reviewed-by: Jeff Cody <jcody@redhat.com>
18
--- a/util/readline.c
15
Message-id: 1496682098-1540-1-git-send-email-peter.maydell@linaro.org
19
+++ b/util/readline.c
16
Signed-off-by: Jeff Cody <jcody@redhat.com>
20
@@ -XXX,XX +XXX,XX @@ static void readline_hist_add(ReadLineState *rs, const char *cmdline)
17
---
21
}
18
block/gluster.c | 3 +--
22
if (strcmp(hist_entry, cmdline) == 0) {
19
1 file changed, 1 insertion(+), 2 deletions(-)
23
same_entry:
24
+ if (idx == READLINE_MAX_CMDS - 1) {
25
+ return;
26
+ }
27
new_entry = hist_entry;
28
/* Put this entry at the end of history */
29
memmove(&rs->history[idx], &rs->history[idx + 1],
30
--
31
2.29.2
20
32
21
diff --git a/block/gluster.c b/block/gluster.c
22
index XXXXXXX..XXXXXXX 100644
23
--- a/block/gluster.c
24
+++ b/block/gluster.c
25
@@ -XXX,XX +XXX,XX @@ static int qemu_gluster_parse_json(BlockdevOptionsGluster *gconf,
26
Error *local_err = NULL;
27
char *str = NULL;
28
const char *ptr;
29
- size_t num_servers;
30
- int i, type;
31
+ int i, type, num_servers;
32
33
/* create opts info from runtime_json_opts list */
34
opts = qemu_opts_create(&runtime_json_opts, NULL, 0, &error_abort);
35
--
36
2.9.3
37
38
diff view generated by jsdifflib