Page MenuHomeFreeBSD

libgeom: Improve type safety of xml2tree code
ClosedPublic

Authored by des on Fri, Jan 2, 12:26 PM.

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable