From 85dfd9aefb92a0f098b04ed5ab8cb25971fada0a Mon Sep 17 00:00:00 2001 From: Simon Inns Date: Thu, 30 Jul 2020 07:16:51 +0200 Subject: [PATCH] Fix for issue #477 --- tools/ld-lds-converter/dataconverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ld-lds-converter/dataconverter.cpp b/tools/ld-lds-converter/dataconverter.cpp index 4fe8c0e29..255530da9 100644 --- a/tools/ld-lds-converter/dataconverter.cpp +++ b/tools/ld-lds-converter/dataconverter.cpp @@ -228,7 +228,7 @@ void DataConverter::unpackFile(void) while(!isComplete) { // Input buffer must be divisible by 5 bytes due to 10-bit data format qint32 bufferSizeInBytes = (5 * 1024 * 1024) * 4; // 5MiB * 4 = 20MiBytes - inputBuffer.resize(bufferSizeInBytes); + inputBuffer.fill(0, bufferSizeInBytes); // Every 5 input bytes is 4 output words (8 bytes) outputBuffer.resize((bufferSizeInBytes / 5) * 8);