Skip to content

[lldb] Add a safety limit for walking parent classes #10806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: swift/release/6.2
Choose a base branch
from

Conversation

adrian-prantl
Copy link

No description provided.

@adrian-prantl adrian-prantl requested a review from a team as a code owner June 6, 2025 23:49
@adrian-prantl adrian-prantl requested a review from augusto2112 June 6, 2025 23:49
@adrian-prantl
Copy link
Author

@swift-ci test

@@ -246,7 +246,9 @@ class TargetReflectionContext : public ReflectionContextInterface {
swift::reflection::DescriptorFinder *descriptor_finder,
const swift::reflection::TypeRef *tr,
std::function<bool(SuperClassType)> fn) override {
while (tr) {
// Guard against faulty self-referential metadata.
unsigned limit = 256;

Choose a reason for hiding this comment

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

nit

Suggested change
unsigned limit = 256;
static constexpr unsigned kLimit = 256;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants