Skip to content

Conversation

@da-viper
Copy link
Contributor

@da-viper da-viper commented Oct 7, 2025

  • check the length of data before casting as char[N] because the will cause lldb to allocate N bytes of memory.

- check the length of data before casting as `char[N]` because the will cause lldb to allocate `N` bytes of memory.
@da-viper da-viper requested a review from kastiglione October 7, 2025 15:07
Copy link
Contributor

@kastiglione kastiglione left a comment

Choose a reason for hiding this comment

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

Seems reasonable, however I don't know how a StringRef could have an uninitialized length.

@github-actions
Copy link

github-actions bot commented Oct 23, 2025

✅ With the latest revision this PR passed the Python code formatter.

Refactor string summary length limit retrieval.
@da-viper da-viper merged commit 9ef60ff into llvm:main Oct 24, 2025
10 checks passed
dvbuka pushed a commit to dvbuka/llvm-project that referenced this pull request Oct 27, 2025
- check the length of data before casting as `char[N]` because the will
cause lldb to allocate `N` bytes of memory.

---------

Co-authored-by: Dave Lee <[email protected]>
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
- check the length of data before casting as `char[N]` because the will
cause lldb to allocate `N` bytes of memory.

---------

Co-authored-by: Dave Lee <[email protected]>
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
- check the length of data before casting as `char[N]` because the will
cause lldb to allocate `N` bytes of memory.

---------

Co-authored-by: Dave Lee <[email protected]>
@da-viper da-viper deleted the string-ref-formatter branch October 31, 2025 10:04
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