Skip to content

How can I show more of stack string in the empty space? #1074

Answered by hugsy
rew1nter asked this question in Q&A
Discussion options

You must be logged in to vote

Well this value is hardcoded on purpose because having unterminated strings can get quickly out of hands from a UI and performance perspective .

So I guess, you have 2 options:

  • edit GEF_MAX_STRING_LENGTH to a bigger value that you find suitable
  • directly read the memory from your own custom context pane using gef.memory.read_cstring($addr, max_length=$whatever_you_want)

Option 1 is faster, but more quick'n dirty.
Option 2 is the more suitable IMO since it's a personal UI preference

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hugsy
Comment options

hugsy Mar 8, 2024
Maintainer

Answer selected by rew1nter
Comment options

You must be logged in to vote
1 reply
@hugsy
Comment options

hugsy Mar 9, 2024
Maintainer

Comment options

You must be logged in to vote
1 reply
@Grazfather
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants