HomeFreeBSD

libgeom: Improve type safety of xml2tree code

Description

libgeom: Improve type safety of xml2tree code

When resolving references, assert that the type of the object we find
is what we expect. This will help prevent memory corruption if two
objects of different types somehow end up with the same identifier.

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

Details

Provenance
desAuthored on Jan 3 2026, 9:10 AM
Reviewer
imp
Differential Revision
D54454: libgeom: Improve type safety of xml2tree code
Parents
rGfad6707e2589: libgeom: Clean up xml2tree code
Branches
Unknown
Tags
Unknown