iso9660: Fix GCC 11 'array subscript partly outside array bounds' warning
This commit is contained in:
parent
1e7ba95230
commit
659a6afa18
@ -5,7 +5,7 @@ set -x
|
||||
|
||||
TARGET=i386-elf
|
||||
BINUTILSVERSION=2.36.1
|
||||
GCCVERSION=10.2.0
|
||||
GCCVERSION=11-20210228
|
||||
NASMVERSION=2.15.05
|
||||
GZIPVERSION=1.10
|
||||
|
||||
@ -19,8 +19,8 @@ export PATH="$PREFIX/bin:$PATH"
|
||||
if [ ! -f binutils-$BINUTILSVERSION.tar.gz ]; then
|
||||
wget https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILSVERSION.tar.gz
|
||||
fi
|
||||
if [ ! -f gcc-$GCCVERSION.tar.gz ]; then
|
||||
wget https://ftp.gnu.org/gnu/gcc/gcc-$GCCVERSION/gcc-$GCCVERSION.tar.gz
|
||||
if [ ! -f gcc-$GCCVERSION.tar.xz ]; then
|
||||
wget https://ftp.nluug.nl/languages/gcc/snapshots/$GCCVERSION/gcc-$GCCVERSION.tar.xz
|
||||
fi
|
||||
if [ ! -f nasm-$NASMVERSION.tar.gz ]; then
|
||||
wget https://www.nasm.us/pub/nasm/releasebuilds/$NASMVERSION/nasm-$NASMVERSION.tar.gz
|
||||
@ -34,7 +34,7 @@ mkdir build
|
||||
cd build
|
||||
|
||||
tar -xf ../binutils-$BINUTILSVERSION.tar.gz
|
||||
tar -xf ../gcc-$GCCVERSION.tar.gz
|
||||
tar -xf ../gcc-$GCCVERSION.tar.xz
|
||||
tar -xf ../nasm-$NASMVERSION.tar.gz
|
||||
tar -xf ../gzip-$GZIPVERSION.tar.gz
|
||||
|
||||
|
@ -39,13 +39,13 @@ struct iso9660_volume_descriptor {
|
||||
uint8_t type;
|
||||
char identifier[5];
|
||||
uint8_t version;
|
||||
uint8_t data[2041];
|
||||
} __attribute__((packed));
|
||||
|
||||
struct iso9660_primary_volume {
|
||||
uint8_t type;
|
||||
char standard_identifier[5];
|
||||
uint8_t version;
|
||||
struct iso9660_volume_descriptor;
|
||||
|
||||
union {
|
||||
struct {
|
||||
uint8_t unused0[1];
|
||||
char system_identifier[32];
|
||||
char volume_identifier[32];
|
||||
@ -63,7 +63,10 @@ struct iso9660_primary_volume {
|
||||
uint32_t LBA_optional_path_table_big;
|
||||
|
||||
struct iso9660_directory_entry root;
|
||||
uint8_t no_one_cares[1858];
|
||||
} __attribute__((packed));
|
||||
|
||||
uint8_t padding[2041];
|
||||
};
|
||||
} __attribute__((packed));
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user