Try to provide more information when reporting issues like these for the sake of reproducibility. For this case, the piece of text you tried to paste as well as the output crash log would be relevant.
Are you sure it crashes? I've pasted hello in Chinese and it just shows up as Question marks, I even tried to execute a file that has 'Say 你好' and that just prompts how to use the say command as if nothing was inputted after say.
@Tatsuru sorry about that; I was on OpenGL while using the say command and I pasted a sentence with a few chinese characters, I can't find the exact text but everything else I'm trying is showing up as question marks like MK shows... I am going to do more testing
Since I can't create branches and merge requests yet, I'll just leave a link here and tell that it needs a NULL check for SDL_GetClipboardText() before memcpy.