Re: [PATCH] scsi: ufs: Leave space for '\0' in utf8 desc string

From: Bart Van Assche
Date: Tue Oct 17 2023 - 15:34:00 EST


On 10/17/23 12:20, Avri Altman wrote:
Fixes: 4b828fe156a6 ("scsi: ufs: revamp string descriptor reading")
I think this code goes back to commit b573d484e4ff (scsi: ufs: add support to read device and string descriptors)

Hmm ... it seems to me that there was no buffer overflow in commit b573d484e4ff but that the buffer overflow was introduced by commit 4b828fe156a6?

Thanks,

Bart.