Skip to content

Conversation

wbruna
Copy link
Contributor

@wbruna wbruna commented Aug 2, 2025

An external ggml will most likely have been built with the default GGML_MAX_NAME value (64), which would be inconsistent with the value set by our build (128). That would be an ODR violation, and it could easily cause memory corruption issues due to the different sizeof(struct ggml_tensor) values.

For now, when linking against an external ggml, we demand it has been patched with a bigger GGML_MAX_NAME, since we can't check against a value defined only at build time.

Related: #749

An external ggml will most likely have been built with the default
GGML_MAX_NAME value (64), which would be inconsistent with the value
set by our build (128). That would be an ODR violation, and it could
easily cause memory corruption issues due to the different
sizeof(struct ggml_tensor) values.

For now, when linking against an external ggml, we demand it has been
patched with a bigger GGML_MAX_NAME, since we can't check against a
value defined only at build time.
@leejet leejet merged commit f7f05fb into leejet:master Aug 2, 2025
9 checks passed
@leejet
Copy link
Owner

leejet commented Aug 2, 2025

Thank you for your contribution.

@wbruna wbruna deleted the prevent_errors_tensor_name branch August 2, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants