]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
rpc: fix known RCE in rpc-server (#1103)
authorPatrick Peng <redacted>
Thu, 6 Feb 2025 14:29:13 +0000 (09:29 -0500)
committerGitHub <redacted>
Thu, 6 Feb 2025 14:29:13 +0000 (15:29 +0100)
commit08b538031f7f944e84f472483ef5d26bf5190ead
tree305df0cd024da4c7233004235f15df11931f0086
parent5ceeaddc68cb9f60a80c0ed70750a3cc79fb85e1
rpc: fix known RCE in rpc-server (#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.
src/ggml-rpc/ggml-rpc.cpp