Commit Graph

1 Commits

Author SHA1 Message Date
Michael Sam 5b62c11e49 Fixes issue: #3924
Problem: invalid model ftype values reached ggml_ftype_to_ggml_type() and triggered GGML_ASSERT, aborting instead of returning a load error.

Change: validate normalized hparams.ftype in whisper_model_load() before calling ggml_ftype_to_ggml_type().

Test: added test-model-load, which writes a minimal invalid model header with ftype = 5 and expects whisper_init_from_file_with_params() to fail cleanly.

Verification I ran: git diff --check; direct compiled and ran test-model-load.

CMake/CTest note: not run because cmake was unavailable in this environment.
2026-07-06 14:10:25 +03:00