34fb1c133c
Volume labels, like directory entries, are padded with spaces and so have no NUL terminator. Whilst the MIN for the dsize argument to strlcpy ensures that the copy does not overflow the destination, strlcpy is defined to return the number of characters in the source string, regardless of the provided dsize, and so keeps reading until it finds a NUL, which likely exists somewhere within the following fields, but On CHERI with the subobject bounds enabled in the compiler this buffer overread will be detected and trap with a bounds violation. Found by: CHERI Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D32579 |
||
---|---|---|
.. | ||
g_label_disk_ident.c | ||
g_label_ext2fs.c | ||
g_label_flashmap.c | ||
g_label_gpt.c | ||
g_label_iso9660.c | ||
g_label_msdosfs.c | ||
g_label_msdosfs.h | ||
g_label_ntfs.c | ||
g_label_reiserfs.c | ||
g_label_ufs.c | ||
g_label.c | ||
g_label.h |