Vulnerability Disclosure Report
The table below lists all vulnerabilities identified in this project. Review and triage the information to identify any critical vulnerabilities.
Dependency Scan Results (BOM)
╔═════════════════════════════════════════════════════════════╤═══════════════════════════════════════╤════════════════════╤═══════════════╤═════════╗
║ Dependency Tree │ Insights │ Fix Version │ Severity │ Score ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ instructor@1.8.2 │ 📓 Indirect dependency │ 3.10.11 │ MEDIUM │ 6.3 ║
║ └── aiohttp@3.9.5 ⬅ CVE-2024-52304 │ │ │ │ ║
║ instructor@1.8.2 │ │ │ MEDIUM │ 6.9 ║
║ └── aiohttp@3.9.5 ⬅ CVE-2024-52303 │ │ │ │ ║
║ instructor@1.8.2 │ │ │ MEDIUM │ 6.3 ║
║ └── aiohttp@3.9.5 ⬅ CVE-2024-42367 │ │ │ │ ║
║ aiohttp@3.9.3 ⬅ CVE-2024-30251 │ │ │ HIGH │ 7.5 ║
║ aiohttp@3.9.3 ⬅ CVE-2024-27306 │ │ │ MEDIUM │ 6.1 ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ requests@2.31.0 │ 📓 Indirect dependency │ 2022.12.07 │ LOW │ 2.0 ║
║ └── certifi@2024.2.2 ⬅ CVE-2024-39689 │ │ │ │ ║
║ requests@2.31.0 │ │ │ HIGH │ 7.5 ║
║ └── certifi@2024.2.2 ⬅ CVE-2023-37920 │ │ │ │ ║
║ requests@2.31.0 │ │ │ MEDIUM │ 5.9 ║
║ └── certifi@2024.2.2 ⬅ CVE-2022-23491 │ │ │ │ ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ requests@2.31.0 │ 📓 Indirect dependency │ 3.7 │ MEDIUM │ 6.9 ║
║ └── idna@3.6 ⬅ CVE-2024-3651 │ │ │ │ ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ torch@2.2.1+cpu │ 📓 Indirect dependency │ 3.1.6 │ MEDIUM │ 5.4 ║
║ └── jinja2@3.1.3 ⬅ CVE-2025-27516 │ │ │ │ ║
║ torch@2.2.1+cpu │ │ │ MEDIUM │ 5.4 ║
║ └── jinja2@3.1.3 ⬅ CVE-2024-56326 │ │ │ │ ║
║ torch@2.2.1+cpu │ │ │ MEDIUM │ 5.4 ║
║ └── jinja2@3.1.3 ⬅ CVE-2024-56201 │ │ │ │ ║
║ torch@2.2.1+cpu │ │ │ MEDIUM │ 5.4 ║
║ └── jinja2@3.1.3 ⬅ CVE-2024-34064 │ │ │ │ ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ protobuf@4.21.0,<5.0.0 ⬅ CVE-2022-1941 │ 📓 Indirect dependency │ 4.21.6 │ HIGH │ 7.5 ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ pytest@5.4.3 │ 📓 Indirect dependency │ │ HIGH │ 8.7 ║
║ └── py@1.11.0 ⬅ CVE-2022-42969 │ │ │ │ ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ torch@2.2.1+cpu ⬅ CVE-2025-3730 │ 🎯 Used in 254 locations │ 2.6.0 │ MEDIUM │ 4.8 ║
║ torch@2.2.1+cpu ⬅ CVE-2025-32434 │ │ │ CRITICAL │ 9.3 ║
║ torch@2.2.1+cpu ⬅ CVE-2025-2953 │ │ │ LOW │ 1.9 ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ transformers@4.38.1 │ 🎯 Used in 10 locations │ 4.66.3 │ LOW │ 3.9 ║
║ └── huggingface-hub@0.20.3 │ │ │ │ ║
║ └── tqdm@4.66.2 ⬅ CVE-2024-34062 │ │ │ │ ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ llama-cpp-scripts@0.0.0 │ 🎯 Used in 42 locations │ 4.50.0 │ MEDIUM │ 5.0 ║
║ └── transformers@4.38.1 ⬅ CVE-2025-1194 │ │ │ │ ║
╟─────────────────────────────────────────────────────────────┼───────────────────────────────────────┼────────────────────┼───────────────┼─────────╢
║ huggingface-hub@0.20.3 │ 📓 Indirect dependency │ 2.2.2 │ MEDIUM │ 4.4 ║
║ └── requests@2.31.0 │ │ │ │ ║
║ └── urllib3@2.2.1 ⬅ CVE-2024-37891 │ │ │ │ ║
╚═════════════════════════════════════════════════════════════╧═══════════════════════════════════════╧════════════════════╧═══════════════╧═════════╝
Vulnerabilities count: 21
╭───────────────────────── Recommendation ──────────────────────────╮
│ ◽ Review the 3 critical vulnerabilities confirmed by the vendor. │
╰───────────────────────────────────────────────────────────────────╯
Proactive Measures
Below are the top reachable packages identified by depscan. Set up alerts and notifications to actively monitor them for new vulnerabilities and exploits.
💥 Top Endpoint-Reachable Packages
╔═══════════════════════╤═════════════════╗
║ Package │ Reachable Flows ║
╟───────────────────────┼─────────────────╢
║ pkg:pypi/numpy@1.26.4 │ 10 ║
╚═══════════════════════╧═════════════════╝
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Explanations for PYTHON ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Reachable Flows
Below are several data flows identified by depscan, including reachable ones. Use the tips provided to strengthen your application’s security posture.
#1 argument dtype ⭕ to the function _get<metaClassAdapter> can be used to reach this package from certain endpoints.
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ gguf-py/gguf/gguf_reader.py#195 _get<metaClassAdapter>(dtype) ↩ ║
║ Tags: pkg:pypi/numpy@1.26.4, framework ║
║ ║
║ ├── gguf-py/gguf/gguf_reader.py#194 _get(self, offset, dtype, count, override_order) ║
║ │ Tags: pkg:pypi/numpy@1.26.4, framework ║
║ │ ║
║ ├── gguf-py/gguf/gguf_reader.py#195 _get(dtype) ↩ ║
║ │ Tags: pkg:pypi/numpy@1.26.4, framework ║
║ │ ║
║ ├── gguf-py/gguf/gguf_reader.py#198 np.empty([], dtype = dtype) ║
║ │ Tags: pkg:pypi/numpy@1.26.4, framework ║
║ │ ║
║ └── gguf-py/gguf/gguf_reader.py#200 tmp17.view(dtype = dtype) ║
║ Tags: pkg:pypi/numpy@1.26.4, framework ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
Reachable Packages:
pkg:pypi/numpy@1.26.4
#2 argument dtype ⭕ to the function meta_with_dtype_and_shape can be used to reach this package from certain endpoints.
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ gguf-py/gguf/lazy.py#207 meta_with_dtype_and_shape(dtype) ↩ ║
║ Tags: pkg:pypi/numpy@1.26.4, framework ║
║ ║
║ ├── gguf-py/gguf/lazy.py#211 np.zeros(1, dtype) ║
║ │ Tags: pkg:pypi/numpy@1.26.4, framework ║
║ │ ║
║ ├── gguf-py/gguf/lazy.py#212 tmp21.as_strided(cheat, shape, tmp19 = <operator>.genExp ║
║ ├── gguf-py/gguf/lazy.py#136 cls.meta_with_dtype_and_shape(dtype, shape(res.shape)) ║
║ ├── gguf-py/gguf/lazy.py#140 isinstance(res, cls._tensor_type) ║
║ ├── gguf-py/gguf/lazy.py#142 isinstance(res, tuple) ║
║ ├── gguf-py/gguf/lazy.py#151 len(res) ║
║ ├── gguf-py/gguf/lazy.py#182 eager_to_meta(t) ↩ ║
║ └── gguf-py/gguf/lazy.py#183 t.dtype ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
Reachable Packages:
pkg:pypi/numpy@1.26.4
Secure Design Tips
• Consider implementing a common validation and sanitization library to reduce the risk of exploitability.
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Explanations for C ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
#1 Parameter argc ↩ to the method main can be used to reach packages with tags `cli-source`
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#536 main(argc) ↩ ║
║ Tags: cli-source ║
║ ║
║ ├── tools/tts/tts.cpp#549 common_params_parse(argc, argv, params, LLAMA_EXAMPLE_TTS, print_usage) ║
║ ├── tools/tts/tts.cpp#561 params.numa ║
║ ├── include/llama.h#420 llama_numa_init(numa) ↩ ║
║ ├── tools/tts/tts.cpp#569 common_init_from_params(params) ║
║ ├── common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ └── tools/tts/tts.cpp#366 input_text.begin() ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#2 Parameter argv ↩ to the method main can be used to reach packages with tags `cli-source`
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#536 main(argv) ↩ ║
║ Tags: cli-source ║
║ ║
║ ├── tools/tts/tts.cpp#549 common_params_parse(argc, argv, params, LLAMA_EXAMPLE_TTS, print_usage) ║
║ ├── tools/tts/tts.cpp#561 params.numa ║
║ ├── include/llama.h#420 llama_numa_init(numa) ↩ ║
║ ├── tools/tts/tts.cpp#569 common_init_from_params(params) ║
║ ├── common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ └── tools/tts/tts.cpp#366 input_text.begin() ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#3 Parameter argc ↩ to the method main can be used to reach packages with tags `cli-source`
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#536 main(argc) ↩ ║
║ Tags: cli-source ║
║ ║
║ ├── tools/tts/tts.cpp#549 common_params_parse(argc, argv, params, LLAMA_EXAMPLE_TTS, print_usage) ║
║ ├── tools/tts/tts.cpp#561 params.numa ║
║ ├── include/llama.h#420 llama_numa_init(numa) ↩ ║
║ ├── tools/tts/tts.cpp#569 common_init_from_params(params) ║
║ ├── common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ ├── tools/tts/tts.cpp#366 input_text.begin() ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#372 result.append(input_text, last_pos, match.position() - last_pos) ║
║ ├── tools/tts/tts.cpp#373 result.append(number_to_words(match.str())) ║
║ ├── tools/tts/tts.cpp#376 result.append(input_text, last_pos) ║
║ ├── tools/tts/tts.cpp#378 ◀ return result; ║
║ ├── tools/tts/tts.cpp#391 processed_text.begin() ║
║ ├── tools/tts/tts.cpp#395 std::regex_replace(processed_text, special_chars, " ") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#398 std::regex_replace(processed_text, non_alpha, "") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#401 std::regex_replace(processed_text, multiple_spaces, " ") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ └── tools/tts/tts.cpp#403 std::regex_replace(processed_text, std::regex(R"(^\s+|\s+$)"), "") ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#4 Parameter argv ↩ to the method main can be used to reach packages with tags `cli-source`
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#536 main(argv) ↩ ║
║ Tags: cli-source ║
║ ║
║ ├── tools/tts/tts.cpp#549 common_params_parse(argc, argv, params, LLAMA_EXAMPLE_TTS, print_usage) ║
║ ├── tools/tts/tts.cpp#561 params.numa ║
║ ├── include/llama.h#420 llama_numa_init(numa) ↩ ║
║ ├── tools/tts/tts.cpp#569 common_init_from_params(params) ║
║ ├── common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ ├── tools/tts/tts.cpp#366 input_text.begin() ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#372 result.append(input_text, last_pos, match.position() - last_pos) ║
║ ├── tools/tts/tts.cpp#373 result.append(number_to_words(match.str())) ║
║ ├── tools/tts/tts.cpp#376 result.append(input_text, last_pos) ║
║ ├── tools/tts/tts.cpp#378 ◀ return result; ║
║ ├── tools/tts/tts.cpp#391 processed_text.begin() ║
║ ├── tools/tts/tts.cpp#395 std::regex_replace(processed_text, special_chars, " ") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#398 std::regex_replace(processed_text, non_alpha, "") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#401 std::regex_replace(processed_text, multiple_spaces, " ") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ └── tools/tts/tts.cpp#403 std::regex_replace(processed_text, std::regex(R"(^\s+|\s+$)"), "") ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#5 Parameter raw_argv ↩ to the method main can be used to reach packages with tags `cli-source`
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tokenize/tokenize.cpp#186 main(raw_argv) ↩ ║
║ Tags: cli-source ║
║ ║
║ ├── tools/tokenize/tokenize.cpp#187 ingest_args(raw_argc, raw_argv) ║
║ ├── tools/tokenize/tokenize.cpp#80 ingest_args(raw_argv) ↩ ║
║ ├── tools/tokenize/tokenize.cpp#112 raw_argv ║
║ ├── tools/tokenize/tokenize.cpp#116 argv.size() ║
║ ├── tools/tokenize/tokenize.cpp#118 ◀ return argv; ║
║ ├── tools/tokenize/tokenize.cpp#249 argv[++iarg] ║
║ ├── tools/tokenize/tokenize.cpp#232 argv[++iarg].c_str() ⤴ ║
║ ├── tools/tokenize/tokenize.cpp#280 model_path == NULL ║
║ ├── tools/tokenize/tokenize.cpp#341 llama_model_load_from_file(model_path, model_params) ║
║ ├── src/llama.cpp#241 llama_model_load_from_file(path_model) ↩ ║
║ ├── src/llama.cpp#244 llama_model_load_from_file_impl(path_model, splits, params) ║
║ ├── tools/tokenize/tokenize.cpp#347 llama_model_get_vocab(model) ║
║ ├── tools/tokenize/tokenize.cpp#350 llama_init_from_model(model, ctx_params) ║
║ ├── tools/tokenize/tokenize.cpp#395 common_token_to_piece(ctx, tokens) ║
║ ├── common/common.cpp#1284 common_token_to_piece(ctx) ↩ ║
║ ├── common/common.cpp#1285 llama_get_model(ctx) ║
║ ├── common/common.cpp#1287 common_token_to_piece(vocab, token, special) ║
║ ├── common/common.cpp#1290 common_token_to_piece(vocab) ↩ ║
║ ├── common/common.cpp#1293 llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special) ║
║ ├── common/common.cpp#1296 piece.size() ║
║ └── common/common.cpp#1303 ◀ return piece; ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#6 Parameter argv ↩ to the method main can be used to reach packages with tags `cli-source`
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/run/run.cpp#1232 main(argv) ↩ ║
║ Tags: cli-source ║
║ ║
║ ├── tools/run/run.cpp#1235 opt.init(argc, argv) ║
║ ├── tools/run/run.cpp#60 init(argv) ↩ ║
║ ├── tools/run/run.cpp#76 parse(argc, argv) ║
║ ├── tools/run/run.cpp#211 parse(argv) ↩ ║
║ ├── tools/run/run.cpp#214 parse_options_with_value(argc, argv, i, options_parsing) ║
║ ├── tools/run/run.cpp#146 parse_options_with_value(argv) ↩ ║
║ │ Tags: parse ║
║ │ ║
║ ├── tools/run/run.cpp#147 argv ║
║ └── tools/run/run.cpp#148 handle_option_with_value(argc, argv, i, context_size) ║
║ Tags: event ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#7 Parameter argv ↩ to the method main can be used to reach packages with tags `cli-source`
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/run/run.cpp#1232 main(argv) ↩ ║
║ Tags: cli-source ║
║ ║
║ ├── tools/run/run.cpp#1235 opt.init(argc, argv) ║
║ ├── tools/run/run.cpp#60 init(argv) ↩ ║
║ ├── tools/run/run.cpp#76 parse(argc, argv) ║
║ ├── tools/run/run.cpp#211 parse(argv) ↩ ║
║ ├── tools/run/run.cpp#214 parse_options_with_value(argc, argv, i, options_parsing) ║
║ ├── tools/run/run.cpp#146 parse_options_with_value(argv) ↩ ║
║ │ Tags: parse ║
║ │ ║
║ ├── tools/run/run.cpp#147 argv ║
║ └── tools/run/run.cpp#153 handle_option_with_value(argc, argv, i, ngl) ║
║ Tags: event ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#8 Parameter params ↩ to the method common_init_from_params
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#583 common_init_from_params(params) ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ └── tools/tts/tts.cpp#366 input_text.begin() ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#9 Parameter numa ↩ to the method llama_numa_init
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ include/llama.h#420 llama_numa_init(numa) ↩ ║
║ ├── tools/tts/tts.cpp#561 params.numa ║
║ ├── tools/tts/tts.cpp#569 common_init_from_params(params) ║
║ ├── common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ └── tools/tts/tts.cpp#366 input_text.begin() ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#10 Parameter params ↩ to the method common_init_from_params
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#569 common_init_from_params(params) ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ └── tools/tts/tts.cpp#366 input_text.begin() ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#11 Parameter numa ↩ to the method llama_numa_init
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ include/llama.h#420 llama_numa_init(numa) ↩ ║
║ ├── tools/tts/tts.cpp#561 params.numa ║
║ ├── tools/tts/tts.cpp#569 common_init_from_params(params) ║
║ ├── common/common.cpp#886 common_init_from_params(params) ↩ ║
║ ├── tools/tts/tts.cpp#677 params.prompt ║
║ ├── tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ ├── tools/tts/tts.cpp#366 input_text.begin() ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#372 result.append(input_text, last_pos, match.position() - last_pos) ║
║ ├── tools/tts/tts.cpp#373 result.append(number_to_words(match.str())) ║
║ ├── tools/tts/tts.cpp#376 result.append(input_text, last_pos) ║
║ ├── tools/tts/tts.cpp#378 ◀ return result; ║
║ ├── tools/tts/tts.cpp#391 processed_text.begin() ║
║ └── tools/tts/tts.cpp#395 std::regex_replace(processed_text, special_chars, " ") ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#12 Parameter text ↩ to the method process_text
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ ├── tools/tts/tts.cpp#366 input_text.begin() ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#372 result.append(input_text, last_pos, match.position() - last_pos) ║
║ ├── tools/tts/tts.cpp#373 result.append(number_to_words(match.str())) ║
║ ├── tools/tts/tts.cpp#376 result.append(input_text, last_pos) ║
║ ├── tools/tts/tts.cpp#378 ◀ return result; ║
║ ├── tools/tts/tts.cpp#391 processed_text.begin() ║
║ └── tools/tts/tts.cpp#395 std::regex_replace(processed_text, special_chars, " ") ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#13 Parameter input_text ↩ to the method replace_numbers_with_words
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ ├── tools/tts/tts.cpp#366 input_text.begin() ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#372 result.append(input_text, last_pos, match.position() - last_pos) ║
║ ├── tools/tts/tts.cpp#373 result.append(number_to_words(match.str())) ║
║ ├── tools/tts/tts.cpp#376 result.append(input_text, last_pos) ║
║ ├── tools/tts/tts.cpp#378 ◀ return result; ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#391 processed_text.begin() ║
║ └── tools/tts/tts.cpp#395 std::regex_replace(processed_text, special_chars, " ") ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#14 Parameter input_text ↩ to the method replace_numbers_with_words
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ ├── tools/tts/tts.cpp#366 input_text.begin() ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#372 result.append(input_text, last_pos, match.position() - last_pos) ║
║ ├── tools/tts/tts.cpp#373 result.append(number_to_words(match.str())) ║
║ ├── tools/tts/tts.cpp#376 result.append(input_text, last_pos) ║
║ ├── tools/tts/tts.cpp#378 ◀ return result; ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#391 processed_text.begin() ║
║ ├── tools/tts/tts.cpp#395 std::regex_replace(processed_text, special_chars, " ") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ └── tools/tts/tts.cpp#398 std::regex_replace(processed_text, non_alpha, "") ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#15 Parameter text ↩ to the method process_text
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tts/tts.cpp#382 process_text(text) ↩ ║
║ ├── tools/tts/tts.cpp#389 replace_numbers_with_words(text) ║
║ ├── tools/tts/tts.cpp#363 replace_numbers_with_words(input_text) ↩ ║
║ ├── tools/tts/tts.cpp#366 input_text.begin() ║
║ │ Tags: regex, library-call ║
║ │ ║
║ ├── tools/tts/tts.cpp#372 result.append(input_text, last_pos, match.position() - last_pos) ║
║ ├── tools/tts/tts.cpp#373 result.append(number_to_words(match.str())) ║
║ ├── tools/tts/tts.cpp#376 result.append(input_text, last_pos) ║
║ ├── tools/tts/tts.cpp#378 ◀ return result; ║
║ ├── tools/tts/tts.cpp#391 processed_text.begin() ║
║ ├── tools/tts/tts.cpp#395 std::regex_replace(processed_text, special_chars, " ") ║
║ │ Tags: regex, library-call ║
║ │ ║
║ └── tools/tts/tts.cpp#398 std::regex_replace(processed_text, non_alpha, "") ║
║ Tags: regex, library-call ║
║ ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#16 Parameter raw_argv ↩ to the method ingest_args
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ tools/tokenize/tokenize.cpp#80 ingest_args(raw_argv) ↩ ║
║ ├── tools/tokenize/tokenize.cpp#112 raw_argv ║
║ ├── tools/tokenize/tokenize.cpp#116 argv.size() ║
║ ├── tools/tokenize/tokenize.cpp#118 ◀ return argv; ║
║ ├── tools/tokenize/tokenize.cpp#187 ingest_args(raw_argc, raw_argv) ║
║ ├── tools/tokenize/tokenize.cpp#249 argv[++iarg] ║
║ ├── tools/tokenize/tokenize.cpp#232 argv[++iarg].c_str() ⤴ ║
║ ├── tools/tokenize/tokenize.cpp#280 model_path == NULL ║
║ ├── tools/tokenize/tokenize.cpp#341 llama_model_load_from_file(model_path, model_params) ║
║ ├── src/llama.cpp#241 llama_model_load_from_file(path_model) ↩ ║
║ ├── src/llama.cpp#244 llama_model_load_from_file_impl(path_model, splits, params) ║
║ ├── tools/tokenize/tokenize.cpp#347 llama_model_get_vocab(model) ║
║ ├── tools/tokenize/tokenize.cpp#350 llama_init_from_model(model, ctx_params) ║
║ ├── tools/tokenize/tokenize.cpp#395 common_token_to_piece(ctx, tokens) ║
║ ├── common/common.cpp#1284 common_token_to_piece(ctx) ↩ ║
║ ├── common/common.cpp#1285 llama_get_model(ctx) ║
║ ├── common/common.cpp#1287 common_token_to_piece(vocab, token, special) ║
║ ├── common/common.cpp#1290 common_token_to_piece(vocab) ↩ ║
║ ├── common/common.cpp#1293 llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special) ║
║ ├── common/common.cpp#1296 piece.size() ║
║ └── common/common.cpp#1303 ◀ return piece; ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#17 Parameter vocab ↩ to the method common_token_to_piece
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ common/common.cpp#1290 common_token_to_piece(vocab) ↩ ║
║ ├── common/common.cpp#1293 llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special) ║
║ ├── common/common.cpp#1296 piece.size() ║
║ ├── common/common.cpp#1303 ◀ return piece; ║
║ ├── common/common.cpp#1287 common_token_to_piece(vocab, token, special) ║
║ └── tools/tokenize/tokenize.cpp#395 common_token_to_piece(ctx, tokens) ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#18 Parameter params ↩ to the method llama_model_load_from_file
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ src/llama.cpp#242 llama_model_load_from_file(params) ↩ ║
║ ├── src/llama.cpp#244 llama_model_load_from_file_impl(path_model, splits, params) ║
║ ├── tools/tokenize/tokenize.cpp#341 llama_model_load_from_file(model_path, model_params) ║
║ ├── tools/tokenize/tokenize.cpp#347 llama_model_get_vocab(model) ║
║ ├── tools/tokenize/tokenize.cpp#350 llama_init_from_model(model, ctx_params) ║
║ ├── tools/tokenize/tokenize.cpp#395 common_token_to_piece(ctx, tokens) ║
║ ├── common/common.cpp#1284 common_token_to_piece(ctx) ↩ ║
║ ├── common/common.cpp#1285 llama_get_model(ctx) ║
║ ├── common/common.cpp#1287 common_token_to_piece(vocab, token, special) ║
║ ├── common/common.cpp#1290 common_token_to_piece(vocab) ↩ ║
║ ├── common/common.cpp#1293 llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special) ║
║ ├── common/common.cpp#1296 piece.size() ║
║ └── common/common.cpp#1303 ◀ return piece; ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#19 Parameter token ↩ to the method common_token_to_piece
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ common/common.cpp#1290 common_token_to_piece(token) ↩ ║
║ ├── common/common.cpp#1293 llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special) ║
║ ├── common/common.cpp#1296 piece.size() ║
║ ├── common/common.cpp#1303 ◀ return piece; ║
║ ├── common/common.cpp#1287 common_token_to_piece(vocab, token, special) ║
║ └── tools/tokenize/tokenize.cpp#395 common_token_to_piece(ctx, tokens) ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
#20 Parameter path_model ↩ to the method llama_model_load_from_file
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ src/llama.cpp#241 llama_model_load_from_file(path_model) ↩ ║
║ ├── src/llama.cpp#244 llama_model_load_from_file_impl(path_model, splits, params) ║
║ ├── tools/tokenize/tokenize.cpp#341 llama_model_load_from_file(model_path, model_params) ║
║ ├── tools/tokenize/tokenize.cpp#347 llama_model_get_vocab(model) ║
║ ├── tools/tokenize/tokenize.cpp#350 llama_init_from_model(model, ctx_params) ║
║ ├── tools/tokenize/tokenize.cpp#395 common_token_to_piece(ctx, tokens) ║
║ ├── common/common.cpp#1284 common_token_to_piece(ctx) ↩ ║
║ ├── common/common.cpp#1285 llama_get_model(ctx) ║
║ ├── common/common.cpp#1287 common_token_to_piece(vocab, token, special) ║
║ ├── common/common.cpp#1290 common_token_to_piece(vocab) ↩ ║
║ ├── common/common.cpp#1293 llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special) ║
║ ├── common/common.cpp#1296 piece.size() ║
║ └── common/common.cpp#1303 ◀ return piece; ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
Secure Design Tips
• Enhance your unit and integration tests to cover the flows listed above.
• Continuously fuzz the parser and validation functions with diverse payloads.