Repository navigation
univalue: respect token end pointer - #35281
ferminquant wants to merge 1 commit into
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsNo conflicts as of last run. |
50c6a17 to
e9a2bbe
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
e9a2bbe to
db49f97
Compare
|
tACK 28f609c Thanks for the added tests. |
There was a problem hiding this comment.
Concept ACK
I think most of these unit tests are redundant however. Also not sure we should be introducing a new utility for this. I think the only cases actually adding a bit of coverage is the leading -01 case. Maybe that should just be covered by some more test fixture files?
EDIT:
It would also be good to mention that this is fixing two separate out of bounds reads.
|
@ferminquant can you respond to the review here? It's been a month. |
|
Thanks for the review. Done in commit 7f633b3:
The focused UniValue test builds and passes locally. |
28f609c to
7f633b3
Compare
7f633b3 to
d107f95
Compare
|
Thanks, fixed in d107f95:
The focused UniValue test passes locally. |
d107f95 to
e40cccf
Compare
e40cccf to
b9a54af
Compare
|
@ferminquant this has been in need of a rebase for a while. Can you do so? |
Avoid reading past the supplied end pointer when matching JSON keywords and validating number prefixes. Also update the UniValue test and parse_univalue fuzz target to exercise bounded input.
b9a54af to
045b0ef
Compare
|
@sedited Done, sorry for the delay. |

Fixes #28260.
Avoid reading past the supplied end pointer in two places:
Also update the UniValue unit test and parse_univalue fuzz target to exercise bounded input.