From bce3a0a66764462a8b35df50977bd998eb904632 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 26 May 2014 09:00:05 +0200 Subject: Fragile concat-deps _process misinterprets ENOMEM from file_load Change-Id: I0df494b74f23b0a30fe26e25f58b4827bd28ed47 --- solenv/bin/concat-deps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solenv') diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c index 4a2230988a91..f2e7617732c9 100644 --- a/solenv/bin/concat-deps.c +++ b/solenv/bin/concat-deps.c @@ -593,7 +593,7 @@ off_t size = -1; } #if !ENABLE_RUNTIME_OPTIMIZATIONS -static void * file_load_buffers[100]; +static void * file_load_buffers[100000]; static size_t file_load_buffer_count = 0; #endif @@ -620,7 +620,7 @@ int fd; #if !ENABLE_RUNTIME_OPTIMIZATIONS if (buffer != NULL) { - if (file_load_buffer_count == 100) + if (file_load_buffer_count == 100000) { free(buffer); buffer = NULL; -- cgit