0
0
mirror of https://github.com/vim/vim.git synced 2025-10-23 08:44:20 -04:00

patch 9.1.1031: Coverity complains about insecure data handling

Problem:  Coverity complains about insecure data handling
          (v9.1.1024)
Solution: use int consistently to access the blob index
          (Yegappan Lakshmanan)

related: #16468

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-01-18 10:24:25 +01:00
committed by Christian Brabandt
parent 54cb514c9a
commit 5e9aaedf52
4 changed files with 7 additions and 2 deletions

View File

@@ -1265,7 +1265,7 @@ string_from_blob(blob_T *blob, long *start_idx)
{
garray_T str_ga;
long blen;
long idx;
int idx;
ga_init2(&str_ga, sizeof(char), 80);