]> source.dussan.org Git - gitea.git/commit
Discard unread data of `git cat-file` (#29297)
authorKN4CK3R <admin@oldschoolhack.me>
Thu, 22 Feb 2024 03:48:19 +0000 (04:48 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Feb 2024 03:48:19 +0000 (03:48 +0000)
commitd6811baf88ca6d58b92d4dc12b1f2a292198751f
tree95e35c3e2da9b468b10f2ca265d75c609f4929c7
parentc236e64aca42b9ab0743431bc505033a0cb78b93
Discard unread data of `git cat-file` (#29297)

Fixes #29101
Related #29298

Discard all read data to prevent misinterpreting existing data. Some
discard calls were missing in error cases.

---------

Co-authored-by: yp05327 <576951401@qq.com>
modules/git/batch_reader.go
modules/git/blob_nogogit.go
modules/git/commit_info_nogogit.go
modules/git/pipeline/lfs_nogogit.go
modules/git/repo_commit_nogogit.go
modules/git/repo_language_stats_nogogit.go
modules/git/repo_tag_nogogit.go
modules/git/repo_tree_nogogit.go
modules/git/tree_nogogit.go
modules/git/tree_test.go [new file with mode: 0644]