Re: [PATCH v2] afs: Increase buffer size in afs_update_volume_status()

From: David Howells
Date: Mon Feb 19 2024 - 05:28:37 EST


Daniil Dulov <d.dulov@xxxxxxxxxx> 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