Project

General

Profile

Actions

Bug #11743

closed

installboot: stage2 partition may be smaller than mboot buffer

Added by Toomas Soome almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

We are using rather large buffer to read in data for multiboot header search; it may so happen that the boot partition allocated is smaller than buffer. Make sure we read min(buffer size, partition size).

Testing done: used mbr on iso file to test.

Actions #1

Updated by Electric Monk almost 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit b97b1727bc40d7d32c5d78e751b231aa5b8778ed

commit  b97b1727bc40d7d32c5d78e751b231aa5b8778ed
Author: Toomas Soome <tsoome@me.com>
Date:   2019-09-23T18:57:13.000Z

    11743 installboot: stage2 partition may be smaller than mboot buffer
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF