···253253 break;
254254 }
255255256256+ // This needs to hold true.
257257+ if (cmd_size > IPC_BUF_SIZE) {
258258+ IPC_ERROR(ics->server, "Command too large! (%u > %u)", (uint32_t)cmd_size, IPC_BUF_SIZE);
259259+ break;
260260+ }
261261+256262 // Read the whole command now that we know its size
257263 uint8_t buf[IPC_BUF_SIZE] = {0};
258264
+2-1
src/xrt/ipc/shared/ipc_protocol.h
···11// Copyright 2020-2024 Collabora, Ltd.
22+// Copyright 2025, NVIDIA CORPORATION.
23// SPDX-License-Identifier: BSL-1.0
34/*!
45 * @file
···313232333334#define IPC_CRED_SIZE 1 // auth not implemented
3434-#define IPC_BUF_SIZE 512 // must be >= largest message length in bytes
3535+#define IPC_BUF_SIZE 2048 // must be >= largest message length in bytes
3536#define IPC_MAX_VIEWS 8 // max views we will return configs for
3637#define IPC_MAX_FORMATS 32 // max formats our server-side compositor supports
3738#define IPC_MAX_DEVICES 8 // max number of devices we will map using shared mem