Skip to content

Commit fac0883

Browse files
committed
filter: return an int
Validate that the return value of the read is not less than INT_MAX, then cast.
1 parent 89bd4dd commit fac0883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ int git_filter_list_stream_file(
974974
}
975975

976976
if (readlen < 0)
977-
error = readlen;
977+
error = -1;
978978

979979
done:
980980
if (initialized)

0 commit comments

Comments
 (0)