]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
rpc: fix known RCE in rpc-server (ggml/1103)
authorPatrick Peng <redacted>
Thu, 6 Feb 2025 14:29:13 +0000 (09:29 -0500)
committerGeorgi Gerganov <redacted>
Thu, 6 Feb 2025 19:22:54 +0000 (21:22 +0200)
commit1d20e53c40c3cc848ba2b95f5bf7c075eeec8b19
tree23d1dc91419815f18300999eaf1e48ea26e1dc79
parent2fb3c32a1634488a5265d1304ab37628eeb5480d
rpc: fix known RCE in rpc-server (ggml/1103)

Add bounds checking in `rpc_server::copy_tensor` to prevent out-of-bounds writes
+ Check if  `(uint8_t *)dst->data + ggml_nbytes(src)` remains within the destination buffer’s allocated region.
ggml/src/ggml-rpc/ggml-rpc.cpp