FIXUP: don't malloc when contexts_len == 0