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, Nov 20, 6:18 PM
Unknown Object (File)
Thu, Nov 20, 6:17 PM
Unknown Object (File)
Thu, Nov 20, 6:16 PM
Unknown Object (File)
Thu, Nov 20, 6:05 PM
Unknown Object (File)
Thu, Nov 20, 8:12 AM
Unknown Object (File)
Mon, Nov 17, 6:27 AM
Unknown Object (File)
Thu, Nov 13, 12:20 PM
Unknown Object (File)
Mon, Nov 10, 3:09 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 20684
Build 20099: arc lint + arc unit

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.