demux: stl: fix heap-buffer-overflow