Decoder: Avoid overlapping memcpy while initializing ref lists

Bug: 117608404
Test: poc with valgrind before/after

Change-Id: I73f2c5302376af11a8f922ceb2e0b1c9cf883f8b
2 files changed