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)
Mon, Dec 16, 3:27 AM
Unknown Object (File)
Mon, Dec 9, 12:11 AM
Unknown Object (File)
Tue, Dec 3, 9:56 AM
Unknown Object (File)
Nov 18 2024, 5:37 AM
Unknown Object (File)
Nov 16 2024, 6:08 AM
Unknown Object (File)
Oct 5 2024, 5:07 AM
Unknown Object (File)
Oct 4 2024, 10:04 PM
Unknown Object (File)
Oct 2 2024, 4:02 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.