From 1384123e2db34851b2e8b57708a97539901dd341 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 16 Jan 2021 05:16:55 -0500 Subject: [PATCH] iconv wrapper: allocate a smaller buffer on the stack --- libaegisub/common/charset_conv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libaegisub/common/charset_conv.cpp b/libaegisub/common/charset_conv.cpp index 498d360b4..47644eb1c 100644 --- a/libaegisub/common/charset_conv.cpp +++ b/libaegisub/common/charset_conv.cpp @@ -366,7 +366,7 @@ size_t IconvWrapper::RequiredBufferSize(std::string const& str) { } size_t IconvWrapper::RequiredBufferSize(const char* src, size_t srcLen) { - char buff[65536]; + char buff[4096]; size_t charsWritten = 0; size_t res;