Skip to content

Fix crash when decrypting#19453

Open
64-bitman wants to merge 1 commit intovim:masterfrom
64-bitman:xchacha20v2_crash
Open

Fix crash when decrypting#19453
64-bitman wants to merge 1 commit intovim:masterfrom
64-bitman:xchacha20v2_crash

Conversation

@64-bitman
Copy link
Contributor

The decrypting code in readfile() in fileio.c does not account for multi byte characters that are split in between successive reads, specifically ones stored in the conv_rest[] array.

Fixes #19425

@chrisbra
Copy link
Member

Thanks. Can you move the test file to the samples/ folder?

@64-bitman
Copy link
Contributor Author

Thanks. Can you move the test file to the samples/ folder?

Done

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.

Crash reported in #19248 persists in vim 9.2: xchacha20v2 encrypted file causes vim crash upon attempted decryption

2 participants

Comments