Repository navigation
Conversation
jiro4989/build-deb-action runs a prebuilt amd64-only Docker image, which fails on the ubuntu-22.04-arm runner with a platform mismatch. Generate the DEBIAN/control file and call dpkg-deb directly instead; the step still exposes file_name for the release upload. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…bSocket JSON Parse WebSocket requests with RapidJSON's iterative parser so nesting depth no longer consumes worker-thread stack; a ~200 kB message of '[' could crash the agent. Apply the same flag to the entity and device JSON parsers. Also validate array parameters in WebSocket requests: non-string elements were read with GetString() and could segfault, and an empty array threw instead of producing an empty value. Co-Authored-By: Claude Opus 5.5 <[email protected]>
simonyg
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses https://github.com/mtconnect/cppagent/security/advisories/GHSA-vw7q-qc2r-cf92
Every text message that arrives on a WebSocket connection is parsed with RapidJSON's default parser, which is recursive: it calls itself once for every level of nesting. The agent sets no limit on nesting. A message that consists of about 175,000 or more opening square brackets uses up the 8 MiB stack of the worker thread, and the agent process ends with a segmentation fault.