diff options
author | Junio C Hamano <gitster@pobox.com> | 2025-05-08 12:36:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-05-08 12:36:32 -0700 |
commit | 349083805e442cdad20f332a42c9e99e90c4c097 (patch) | |
tree | 8d5a221b94e71ace72f0ac45447dbc2c5b88b8e2 /diff.c | |
parent | 0730906043110523d844f7371770aee0bcacc1a9 (diff) | |
parent | 104add8368617f80ee356ea48497364ed39a7b7a (diff) |
Merge branch 'js/diff-codeql-false-positive-workaround'
Work around false positive given by CodeQL.
* js/diff-codeql-false-positive-workaround:
diff: check range before dereferencing an array element
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -892,7 +892,7 @@ static void fill_es_indent_data(struct emitted_diff_symbol *es) /* skip any \v \f \r at start of indentation */ while (s[off] == '\f' || s[off] == '\v' || - (s[off] == '\r' && off < len - 1)) + (off < len - 1 && s[off] == '\r')) off++; /* calculate the visual width of indentation */ |