Page MenuHomeFreeBSD

loader: ptable_open() check for ptable_cd9660read result is wrong
ClosedPublic

Authored by tsoome on Nov 7 2018, 1:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 8:54 AM
Unknown Object (File)
Sat, Apr 6, 2:01 AM
Unknown Object (File)
Fri, Mar 22, 4:09 PM
Unknown Object (File)
Jan 16 2024, 5:26 AM
Unknown Object (File)
Jan 5 2024, 6:19 AM
Unknown Object (File)
Dec 21 2023, 5:21 AM
Unknown Object (File)
Dec 20 2023, 1:36 AM
Unknown Object (File)
Dec 12 2023, 9:23 AM
Subscribers

Details

Summary

bug 232483

The ptable_*read() functions return NULL on read errors (and partition table
closed as an side effect). The ptable_open must check the return value and
act properly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 7 2018, 7:23 PM

This helps. It doen't show BSD partitions, but shows all four MBR slices without crash.

In D17890#382275, @lev wrote:

This helps. It doen't show BSD partitions, but shows all four MBR slices without crash.

Yes, because even the gpart does not list the partition types there (!0), so the loader part.c does not have knowledge about such layout. But thats another issue:)

This revision was automatically updated to reflect the committed changes.