Updated to deal with reading impossibly small TLV buffers sanely