Browse Source

Commit to solve the issue #11353, IME, Windows - buffer overrun? when entering long composition string

pull/11357/head
malaguenha 3 years ago
parent
commit
aee66ef471
  1. 2
      src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs

2
src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs

@ -1902,7 +1902,7 @@ namespace Avalonia.Win32.Interop
if (bufferLength > 0) if (bufferLength > 0)
{ {
var buffer = bufferLength <= 64 ? stackalloc byte[bufferLength] : new byte[bufferLength]; var buffer = bufferLength <= 64 ? stackalloc byte[bufferLength + 8] : new byte[bufferLength];
fixed (byte* bufferPtr = buffer) fixed (byte* bufferPtr = buffer)
{ {

Loading…
Cancel
Save