attr: fix out-of-bounds read with huge attribute names