max_attr_size is an uint32_t value