Repository navigation
Fix out-of-bounds write when updating a record array without an element index - #80
Merged
Merged
Conversation
Collaborator
Author
|
@garethpotter the implementation in its current form rejected whole array updates, so I've stuck with that theme here. AFAICT the spec doesn't state either way so this aligns with the current implementation but we could discuss it if you have opinions |
Collaborator
Author
|
CI is my enemy here. Will retry the failures again later. Edit: it's a recurring issue |
garethpotter
requested changes
Nov 17, 2026
|
|
||
| /// @brief Sends a binary request given as hex bytes and returns the response length; the | ||
| /// response is left in `response`. | ||
| static int sendBinary(TestableServer &server, const char *hex, uint8_t *response, size_t responseSize) |
Collaborator
There was a problem hiding this comment.
I feel like this should be reused from TestServerProtocol.cpp, where most of it is found in the method named fromHex.
Collaborator
Author
There was a problem hiding this comment.
Apologies, had a lot on. I've now done this, and we also now share TestableServer
amitchone
force-pushed
the
fix-record-update-without-index
branch
from
November 25, 2026 16:22
82ee154 to
953c391
Compare
garethpotter
approved these changes
Nov 25, 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.
Updates addressed to a record array itself (by ID, or by name with no /N) already returned
badRequestbut still decoded intovalue[SIZE_MAX]; the handler now returns first. A failed element decode is also reported asbadRequestinstead ofchanged. Claude added some tests.