SIGN IN SIGN UP

Fix heap corruption from wmode out-of-bound writes on windows (#6272)

* would throw error on VS2022 on GGML_FREE(wmode)
* wchar_t is usually 2 bytes, but malloc wants bytes
  * therefore `*wmode_p++ = (wchar_t)*mode;` could write off the end of the allocation
* Fixes error possibly introduced by https://github.com/ggerganov/llama.cpp/pull/6248
R
Rick G committed
a32b77c4b2c1808654d0b952f26c37d73d2e746b
Parent: a0e584d
Committed by GitHub <noreply@github.com> on 3/24/2024, 9:45:56 PM