Print this page
10122 beadm buffer over-run

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/beadm/beadm.c
          +++ new/usr/src/cmd/beadm/beadm.c
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  25   25   * Copyright 2015 Toomas Soome <tsoome@me.com>
  26   26   * Copyright 2015 Gary Mills
  27   27   * Copyright (c) 2015 by Delphix. All rights reserved.
  28   28   * Copyright 2017 Jason King
  29   29   * Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
       30 + * Copyright (c) 2018, Joyent, Inc.
  30   31   */
  31   32  
  32   33  /*
  33   34   * System includes
  34   35   */
  35   36  
  36   37  #include <assert.h>
  37   38  #include <stdio.h>
  38   39  #include <strings.h>
  39   40  #include <libzfs.h>
↓ open down ↓ 166 lines elided ↑ open up ↑
 206  207  init_hdr_cols(enum be_fmt be_fmt, struct hdr_info *hdr)
 207  208  {
 208  209          struct col_info *col = hdr->cols;
 209  210          size_t i;
 210  211  
 211  212          col[1].col_name = _("Active");
 212  213          col[2].col_name = _("Mountpoint");
 213  214          col[3].col_name = _("Space");
 214  215          col[4].col_name = _("Policy");
 215  216          col[5].col_name = _("Created");
 216      -        col[6].col_name = NULL;
 217  217  
 218  218          switch (be_fmt) {
 219  219          case BE_FMT_ALL:
 220  220                  col[0].col_name = _("BE/Dataset/Snapshot");
 221  221                  break;
 222  222          case BE_FMT_DATASET:
 223  223                  col[0].col_name = _("BE/Dataset");
 224  224                  break;
 225  225          case BE_FMT_SNAPSHOT:
 226  226                  col[0].col_name = _("BE/Snapshot");
↓ open down ↓ 1328 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX