[PATCH 6.18 271/430] tpm2-sessions: Fix out of range indexing in name_size