Skip to content

Commit beed7e2

Browse files
committed
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
2 parents 3a940e9 + d8579ac commit beed7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsmonitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static int query_fsmonitor(int version, uint64_t last_update, struct strbuf *que
104104
if (!(argv[0] = core_fsmonitor))
105105
return -1;
106106

107-
snprintf(ver, sizeof(version), "%d", version);
107+
snprintf(ver, sizeof(ver), "%d", version);
108108
snprintf(date, sizeof(date), "%" PRIuMAX, (uintmax_t)last_update);
109109
argv[1] = ver;
110110
argv[2] = date;

0 commit comments

Comments
 (0)