Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-04-25 07:29:03 +0300
committerJunio C Hamano <gitster@pobox.com>2018-04-25 07:29:03 +0300
commitbeed7e22fdc81ba325c4bfaadf84d23f5c697d93 (patch)
tree9f81c2ef32e4f0eab2883419c292513ef2772531 /fsmonitor.c
parent3a940e90d505a3f2ea20e5ebc5b7acad131ad204 (diff)
parentd8579accfaea398a157a3a8ad2ca6cac25f1b999 (diff)
Merge branch 'bp/fsmonitor-bufsize-fix'
Fix an unexploitable (because the oversized contents are not under attacker's control) buffer overflow. * bp/fsmonitor-bufsize-fix: fsmonitor: fix incorrect buffer size when printing version number
Diffstat (limited to 'fsmonitor.c')
-rw-r--r--fsmonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsmonitor.c b/fsmonitor.c
index 6d7bcd5d0e..eb4e642256 100644
--- a/fsmonitor.c
+++ b/fsmonitor.c
@@ -104,7 +104,7 @@ static int query_fsmonitor(int version, uint64_t last_update, struct strbuf *que
if (!(argv[0] = core_fsmonitor))
return -1;
- snprintf(ver, sizeof(version), "%d", version);
+ snprintf(ver, sizeof(ver), "%d", version);
snprintf(date, sizeof(date), "%" PRIuMAX, (uintmax_t)last_update);
argv[1] = ver;
argv[2] = date;