git: gpt - Fix corruption in device_name string

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 22 16:28:15 PDT 2021


commit cbfa2b0228d3f51e40eaf04b0f2f155aa8450c0e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 22 16:27:31 2021 -0700

    gpt - Fix corruption in device_name string
    
    * gpt_open() was assign a global char * to a local stack-based buffer.
      Change the stack-based buffer to a static.
    
    * Fixes corrupted device names.

Summary of changes:
 sbin/gpt/gpt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cbfa2b0228d3f51e40eaf04b0f2f155aa8450c0e


-- 
DragonFly BSD source repository


More information about the Commits mailing list