]> www.infradead.org Git - users/dwmw2/qemu.git/commit
Revert "vvfat: fix ubsan issue in create_long_filename"
authorMichael Tokarev <mjt@tls.msk.ru>
Sun, 29 Dec 2024 21:08:50 +0000 (00:08 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 31 Dec 2024 15:20:41 +0000 (18:20 +0300)
commitd8d17d2bf6181cdc9b8ef3db862006ddb6af12d4
tree43fa12d44ab01060d1b0c7c16e94e41d5c6a49ae
parent7c89e226f878539b633dde3fd9c9f061c34094e3
Revert "vvfat: fix ubsan issue in create_long_filename"

This reverts commit 0cb3ff7c22671aa1e1e227318799ccf6762c3bea.

The original code was right in that long name in LFN directory
entry uses other parts of the entry for the name too, not just
the original "name" field.  So it is wrong to limit the offset
to be within the name field.  Some other mechanism is needed
to fix the ubsan report and whole messy usage of bytes past the
given field.

Reported-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/vvfat.c