git: gpt(8): Explicitly avoid out of range in searching MBR partitions

Aaron LI aly at crater.dragonflybsd.org
Tue Jun 18 09:33:34 PDT 2019


commit 47af96940556d3cde6c471a39e5b88fa750beb50
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Jun 19 00:30:40 2019 +0800

    gpt(8): Explicitly avoid out of range in searching MBR partitions
    
    Avoid running off the end of an array in case thing we're looking for
    isn't there.  This is probably impossible, but not obvious.
    
    Obtained-from: NetBSD
    Bug-report: #3015

Summary of changes:
 sbin/gpt/show.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/47af96940556d3cde6c471a39e5b88fa750beb50


-- 
DragonFly BSD source repository



More information about the Commits mailing list