Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Wed, 22 Jan 2020 19:54:09
Message-Id: 1579722441.7b239af630a92184d7e7e024904b3c66ff08c381.grobian@gentoo
1 commit: 7b239af630a92184d7e7e024904b3c66ff08c381
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 22 19:47:21 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 22 19:47:21 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=7b239af6
7
8 qlop: fix Coverity 125912 Out-of-bounds access
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 qlop.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/qlop.c b/qlop.c
16 index 8c166e2..cbe3b58 100644
17 --- a/qlop.c
18 +++ b/qlop.c
19 @@ -138,7 +138,7 @@ parse_date(const char *sdate, time_t *t)
20 /* Handle the formats:
21 * <#> <day|week|month|year>[s] [ago]
22 */
23 - len = strlen(sdate);
24 + len = strlen(sdate) + 1;
25
26 unsigned long num;
27 char dur[len];