0

Windows Notepad has a limit: 1024 symbols - max string length.
Download link: https://krakenfiles.com/view/uID2gzKW7K/file.html (189 KB)
How to find this value to increase or remove? Where is it located? Please help.

It is a question about reversing, not about other programs to use instead.

Update:
With suggested in the answer, I found the check after which a forced line break is made (it is COMCTL32.dll+C6E44), increased the limit using code injection, but the text goes out of the field and the scrollbar doesn't work for it. Please help.

5
  • Where did you get that length? From what I know the recent version of notepad has a limitation of 2GB file. Commented Jun 1, 2024 at 7:30
  • @SuperUser After this length, a forced line break is made. And it was discussed several times by users. Commented Jun 1, 2024 at 9:30
  • @SuperUser Please help to find it. I need to learn how to do such tasks. Commented Jun 1, 2024 at 16:38
  • 2
    I think this limit may be part of the multiline edit control that Notepad used. For example, archived Microsoft Knowledge Base article Q74225 says "A multiline edit control is also subject to the following limitations: The maximum number of characters in a single line is 1024." If you want to attempt to fix it, you may need to investigate the part of the OS that provides the multiline edit control. Commented Jun 4, 2024 at 6:48
  • @Bavi_H I am more of a beginner and can't investigate. Commented Jun 4, 2024 at 12:39

1 Answer 1

1
  • Install cheat engine
  • Scan for the number of char on the line, add or remove a couple of characters and press next scan with the new number of character on the line
  • Once you have one value left, right click find out what access this address and look for a cmp instruction

You can either change the conditional jmp or the value its comparing to.

4
  • I managed to increase the limit with this, but the text goes out of the field and the scrollbar doesn't work for it. Please help. Commented Jun 4, 2024 at 14:56
  • @Lumira I tried that, it's not that simple. see Bavi_H comment. Commented Jun 4, 2024 at 19:26
  • @oleedd: of course it doesn't. The check is there to prevent a buffer overflow. Commented Jun 24, 2024 at 0:54
  • @got Maybe there is a scrollbar check for 1024. But I didn't find it for this string length value. Commented Jun 25, 2024 at 21:54

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.