[lvc-project] [PATCH v2] afs: Increase buffer size in afs_update_volume_status()

David Howells dhowells at redhat.com
Mon Feb 19 13:28:13 MSK 2024


Daniil Dulov <d.dulov at aladdin.ru> wrote:

> The max length of volume->vid value is 20 characters.
> So increase idbuf[] size up to 20 to avoid overflow.

Is that 20 including the NUL?  If not, I'd increase it to 24 (it's likely to
get rounded up to a multiple of 4 or 8 by the compiler).

David




More information about the lvc-project mailing list