Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix heap corruption from wmode out-of-bound writes on windows (ggerga…
…nov#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 ggerganov#6248
- Loading branch information