m4: Mitigate temp file issue on 32-bit archs

Allocates indefinite amount of in-memory buffer.
This commit is contained in:
Tee KOBAYASHI 2022-02-20 04:14:18 +09:00 committed by xtkoba
parent 19ae33b6d9
commit e08f115750
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
--- a/src/output.c
+++ b/src/output.c
@@ -423,8 +423,12 @@
/* Check if we are exceeding the maximum amount of buffer memory. */
+#if defined __ANDROID__ && !defined __LP64__
+ if (0)
+#else
if (total_buffer_size - output_diversion->size + wanted_size
> MAXIMUM_TOTAL_SIZE)
+#endif
{
int selected_used;
char *selected_buffer;