summaryrefslogtreecommitdiff
path: root/usr/src/cmd/boot/installgrub/installgrub.h
diff options
context:
space:
mode:
authorHans Rosenfeld <hans.rosenfeld@nexenta.com>2012-08-02 04:58:41 -0500
committerHans Rosenfeld <hans.rosenfeld@nexenta.com>2012-08-02 04:58:41 -0500
commit14d44f2248cc2a54490db7f7caa4da5968f90837 (patch)
treef1547f24b3208f52a0bd40f536075bbf91ca14ff /usr/src/cmd/boot/installgrub/installgrub.h
parente828a46d29ad418487f50d56b5c19e2a1f9033a7 (diff)
downloadillumos-joyent-14d44f2248cc2a54490db7f7caa4da5968f90837.tar.gz
3027 installgrub can segfault when encountering bogus data on disk
Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Albert Lee <trisk@nexenta.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd/boot/installgrub/installgrub.h')
-rw-r--r--usr/src/cmd/boot/installgrub/installgrub.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/cmd/boot/installgrub/installgrub.h b/usr/src/cmd/boot/installgrub/installgrub.h
index e23d1c35d7..af6e60b973 100644
--- a/usr/src/cmd/boot/installgrub/installgrub.h
+++ b/usr/src/cmd/boot/installgrub/installgrub.h
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _INSTALLGRUB_H
@@ -53,6 +54,7 @@ typedef struct _stage2_data {
multiboot_header_t *mboot;
uint32_t mboot_off;
uint32_t file_size;
+ uint32_t extra_size;
uint32_t buf_size;
uint32_t first_sector;
uint32_t pcfs_first_sectors[2];