aboutsummaryrefslogtreecommitdiff
path: root/docker/compose/local-minio-gateway-compose.yml
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-12-08 22:26:03 -0800
committerGitHub <noreply@github.com>2025-12-08 22:26:03 -0800
commitcea12ba3c4df7b54027aa550043ca347bf3f3be4 (patch)
treea3fb78f825526f28c77f58616bb4b7f4b4fe2c50 /docker/compose/local-minio-gateway-compose.yml
parent9196696278ae1bd1203cf149f1de43317b3ccef3 (diff)
downloadseaweedfs-cea12ba3c4df7b54027aa550043ca347bf3f3be4.tar.xz
seaweedfs-cea12ba3c4df7b54027aa550043ca347bf3f3be4.zip
fix: prevent makeslice panic in ReadNeedleMeta with corrupted needle (#7675)
* fix: prevent makeslice panic in ReadNeedleMeta with corrupted needle When a needle's DataSize in the .dat file is corrupted to a very large value, the calculation of metaSize can become negative, causing a panic with 'makeslice: len out of range' when creating the metadata slice. This fix adds validation to check if metaSize is negative before creating the slice, returning a descriptive error instead of panicking. Fixes #7475 * Update weed/storage/needle/needle_read_page.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Diffstat (limited to 'docker/compose/local-minio-gateway-compose.yml')
0 files changed, 0 insertions, 0 deletions