From: Joel Holdsworth Date: Sun, 3 Mar 2013 11:43:38 +0000 (+0000) Subject: Pad mip-map buffers to allow for uint64_t write word X-Git-Tag: pulseview-0.1.0~116 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8fe602795012213fdd0ceff9efb6c6158d20f19b;p=pulseview.git Pad mip-map buffers to allow for uint64_t write word --- diff --git a/pv/data/logicsnapshot.cpp b/pv/data/logicsnapshot.cpp index a7a84cf9..af6ac0e8 100644 --- a/pv/data/logicsnapshot.cpp +++ b/pv/data/logicsnapshot.cpp @@ -77,7 +77,10 @@ void LogicSnapshot::reallocate_mip_map(MipMapLevel &m) if (new_data_length > m.data_length) { m.data_length = new_data_length; - m.data = realloc(m.data, new_data_length * _unit_size); + + // Padding is added to allow for the uint64_t write word + m.data = realloc(m.data, new_data_length * _unit_size + + sizeof(uint64_t)); } }