]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
rpc : RCE patch (llama/20908)
authorlas7 <redacted>
Mon, 23 Mar 2026 17:54:57 +0000 (10:54 -0700)
committerGeorgi Gerganov <redacted>
Sat, 28 Mar 2026 11:39:09 +0000 (13:39 +0200)
src/ggml-rpc/ggml-rpc.cpp

index 5d8defad209072e0949cbf403ebd2e67a2f2e0bc..0ed2c0dce60556037e9a7adc726ebddbd5dcfeab 100644 (file)
@@ -1443,7 +1443,9 @@ ggml_tensor * rpc_server::create_node(uint64_t id,
     const rpc_tensor * tensor = it_ptr->second;
 
     struct ggml_tensor * result = deserialize_tensor(ctx, tensor);
-    if (result == nullptr) {
+    if (result == nullptr || result->buffer == nullptr) {
+        GGML_LOG_ERROR("[%s] invalid tensor: null %s (id=%" PRIu64 ")\n",
+                       __func__, result == nullptr ? "tensor" : "buffer", id);
         return nullptr;
     }
     tensor_map[id] = result;