Skip to content

Prevent ndarray size vector from recursive use, fix nlohmann/json#3503 - #3505

Merged
nlohmann merged 5 commits into
nlohmann:developfrom
NeuroJSON:issue3503
May 23, 2022
Merged

nlohmann merged 5 commits into
nlohmann:developfrom
NeuroJSON:issue3503

Conversation

@fangq

@fangq fangq commented May 22, 2022

Copy link
Copy Markdown
Contributor

It seems that the broken ND array objects in #3503 were results of embedding arrays inside an ND-array size. In #3500, I added a flag to prevent recursive embedding but missed the get_ubjson_size_type function. now this is added. The test data throw errors as expected.

let me know if the fuzzer test still find something else after this patch.

@fangq
fangq requested a review from nlohmann as a code owner May 22, 2022 04:37
@coveralls

coveralls commented May 22, 2022 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 32a5558 on NeuroJSON:issue3503 into 41226d0 on nlohmann:develop.

@nlohmann

Copy link
Copy Markdown
Owner

I'll check.

@nlohmann

Copy link
Copy Markdown
Owner

No problems found so far.

@nlohmann nlohmann left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@nlohmann nlohmann linked an issue May 22, 2022 that may be closed by this pull request
@nlohmann nlohmann self-assigned this May 22, 2022
@nlohmann nlohmann added this to the Release 3.11.0 milestone May 22, 2022
@nlohmann

Copy link
Copy Markdown
Owner

Thanks a lot! I will merge this once AppVeyor is done.

@nlohmann
nlohmann merged commit ede6667 into nlohmann:develop May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binary reader for BJData creates incorrect SAX events

3 participants

⌂ 换网址