]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
quantize: prevent input/output file collision (#18451)
authorAnri Lombard <redacted>
Wed, 31 Dec 2025 15:29:03 +0000 (17:29 +0200)
committerGitHub <redacted>
Wed, 31 Dec 2025 15:29:03 +0000 (23:29 +0800)
commit33ded988ba9a5514036d64334f803334047a15d8
tree523b3aff8cf2c008dab0f52747b8a306049a9122
parent0db81098494023775a704a44042c317d36c91f24
quantize: prevent input/output file collision (#18451)

Check if input and output files are the same before quantizing to prevent
file corruption when mmap reads from a file being written to.

Fixes #12753
tools/quantize/quantize.cpp