HomeFreeBSD

udf: Improve input validation.

Description

udf: Improve input validation.

The existing code frequently assigns unsigned 64-bit values to variables
that are signed and / or shorter without checking for overflow. Try to
deal with these cases.

While here, fix two structs that used single-element arrays in place of
flexible array members.

PR: 287896
MFC after: 1 week
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D51339

(cherry picked from commit 55f80afa17e8926f69660f19631194bcf7fa66f4)

Details

Provenance
desAuthored on Jul 16 2025, 7:33 PM
Reviewer
imp
Differential Revision
D51339: udf: Improve input validation.
Parents
rGa7b4e2e9d0ca: kyua: Try harder to delete directories.
Branches
Unknown
Tags
Unknown