Repository navigation
Backport #121693 to 26.9: Guard the JSON AST deserialization recursions with checkStackSize - #121854
Conversation
…ns with checkStackSize
|
Workflow [BackportPR], commit [0aa6879] Summary: ✅ |
The build failure is a missing include on this branch, not a bad cherry-pick
#121693 adds a One line fixes it, and nothing else from #120507 is needed: --- a/src/Parsers/ASTJSONReadHelpers.cpp
+++ b/src/Parsers/ASTJSONReadHelpers.cpp
@@ -5,6 +5,7 @@
#include <Parsers/ASTIdentifier.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTPartition.h>
+#include <Common/checkStackSize.h>
#include <IO/ReadHelpers.h>That is where master keeps it, after the I cannot push here, so the commit is on my fork, as a fast-forward of this branch:
I did not build this branch locally, since its submodule pins differ from master's, so the verification is static: the subset property above, plus #121853 (26.8) fails identically, with the same one-line resolution on |
…kport 26.9 lacked the earlier fix that added this include (and its own checkStackSize() call) to ASTJSONReadHelpers.cpp, so the cherry-picked checkStackSize() call in readFieldFromObjectImpl failed to compile. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Original pull-request #121693
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.9.2.26