diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-30 13:34:20 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-30 13:34:20 -0200 |
commit | 9554a932e9bba6a400e2eb6f84c4018898a7aa5d (patch) | |
tree | ee8570e63b3a92b3c97eb5e2151b6653b73cba05 /cross/cross-binutils/binutils-2.24-CVE-2014-8501.patch | |
parent | 9cff27b319e8f0c00e590f4953f25e65ebe6bcb2 (diff) | |
download | abslibre-9554a932e9bba6a400e2eb6f84c4018898a7aa5d.tar.gz abslibre-9554a932e9bba6a400e2eb6f84c4018898a7aa5d.tar.bz2 abslibre-9554a932e9bba6a400e2eb6f84c4018898a7aa5d.zip |
update cross-binutils
Diffstat (limited to 'cross/cross-binutils/binutils-2.24-CVE-2014-8501.patch')
-rw-r--r-- | cross/cross-binutils/binutils-2.24-CVE-2014-8501.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cross/cross-binutils/binutils-2.24-CVE-2014-8501.patch b/cross/cross-binutils/binutils-2.24-CVE-2014-8501.patch new file mode 100644 index 000000000..131288585 --- /dev/null +++ b/cross/cross-binutils/binutils-2.24-CVE-2014-8501.patch @@ -0,0 +1,26 @@ +diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c +index 2fb631c..987be40 100644 +--- a/bfd/peXXigen.c ++++ b/bfd/peXXigen.c +@@ -504,6 +504,18 @@ _bfd_XXi_swap_aouthdr_in (bfd * abfd, + { + int idx; + ++ /* PR 17512: Corrupt PE binaries can cause seg-faults. */ ++ if (a->NumberOfRvaAndSizes > 16) ++ { ++ (*_bfd_error_handler) ++ (_("%B: aout header specifies an invalid number of data-directory entries: %d"), ++ abfd, a->NumberOfRvaAndSizes); ++ /* Paranoia: If the number is corrupt, then assume that the ++ actual entries themselves might be corrupt as well. */ ++ a->NumberOfRvaAndSizes = 0; ++ } ++ ++ + for (idx = 0; idx < a->NumberOfRvaAndSizes; idx++) + { + /* If data directory is empty, rva also should be 0. */ +-- +1.7.1 + |