[Bug 221854] makefs: Reject UFS labels that are too long to fit

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 03 Aug 2025 10:36:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221854

Fabian Keil <fk@fabiankeil.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #185810|0                           |1
        is obsolete|                            |

--- Comment #5 from Fabian Keil <fk@fabiankeil.de> ---
Created attachment 262659
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262659&action=edit
makefs: Reject UFS labels that are too long to fit and add tests

The updated patch set "reject[s] any and all truncation errors" in the
OPT_STRARRAY case as suggested by Piotr in comment 2.

It also adds two tests.

Unless I missed something the OPT_STRARRAY code path is only used for UFS
labels at the moment.

-- 
You are receiving this mail because:
You are the assignee for the bug.