-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6314 buffer overflow in dsl_dataset_name
Reviewed by: George Wilson <[email protected]> Reviewed by: Prakash Surya <[email protected]> Reviewed by: Igor Kozhukhov <[email protected]> Closes #112
- Loading branch information
1 parent
de9cc02
commit d6160ee
Showing
56 changed files
with
391 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,10 @@ | |
|
||
/* | ||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. | ||
*/ | ||
|
||
/* | ||
* Copyright 2013 Nexenta Systems, Inc. All rights reserved. | ||
* Copyright 2015 Toomas Soome <[email protected]> | ||
* Copyright 2015 Gary Mills | ||
* Copyright (c) 2015 by Delphix. All rights reserved. | ||
*/ | ||
|
||
/* | ||
|
@@ -288,7 +286,7 @@ count_widths(enum be_fmt be_fmt, struct hdr_info *hdr, be_node_list_t *be_nodes) | |
len[i] = hdr->cols[i].width; | ||
|
||
for (cur_be = be_nodes; cur_be != NULL; cur_be = cur_be->be_next_node) { | ||
char name[ZFS_MAXNAMELEN+1]; | ||
char name[ZFS_MAX_DATASET_NAME_LEN + 1]; | ||
const char *be_name = cur_be->be_node_name; | ||
const char *root_ds = cur_be->be_root_ds; | ||
char *pos; | ||
|
@@ -432,7 +430,7 @@ print_be_snapshots(be_node_list_t *be, struct hdr_info *hdr, boolean_t parsable) | |
|
||
for (snap = be->be_node_snapshots; snap != NULL; | ||
snap = snap->be_next_snapshot) { | ||
char name[ZFS_MAXNAMELEN+1]; | ||
char name[ZFS_MAX_DATASET_NAME_LEN + 1]; | ||
const char *datetime_fmt = "%F %R"; | ||
const char *be_name = be->be_node_name; | ||
const char *root_ds = be->be_root_ds; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.