Blame binutils-2.24-cve_2014_8503.patch
|
|
57c1471 |
From 0102ea8cec5fc509bba6c91df61b7ce23a799d32 Mon Sep 17 00:00:00 2001
|
|
|
57c1471 |
From: Nick Clifton <nickc@redhat.com>
|
|
|
57c1471 |
Date: Thu, 30 Oct 2014 17:16:17 +0000
|
|
|
57c1471 |
Subject: [PATCH] Fixes a seg-fault in the ihex parser when it encounters a malformed ihex file.
|
|
|
57c1471 |
|
|
|
57c1471 |
PR binutils/17512
|
|
|
57c1471 |
* ihex.c (ihex_scan): Fix typo in invocation of ihex_bad_byte.
|
|
|
57c1471 |
---
|
|
|
57c1471 |
bfd/ihex.c | 2 +-
|
|
|
57c1471 |
2 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
57c1471 |
|
|
|
57c1471 |
diff --git a/bfd/ihex.c b/bfd/ihex.c
|
|
|
57c1471 |
index 8d3590d..9b3b813 100644
|
|
|
57c1471 |
--- a/bfd/ihex.c
|
|
|
57c1471 |
+++ b/bfd/ihex.c
|
|
|
57c1471 |
@@ -321,7 +321,7 @@ ihex_scan (bfd *abfd)
|
|
|
57c1471 |
{
|
|
|
57c1471 |
if (! ISHEX (buf[i]))
|
|
|
57c1471 |
{
|
|
|
57c1471 |
- ihex_bad_byte (abfd, lineno, hdr[i], error);
|
|
|
57c1471 |
+ ihex_bad_byte (abfd, lineno, buf[i], error);
|
|
|
57c1471 |
goto error_return;
|
|
|
57c1471 |
}
|
|
|
57c1471 |
}
|
|
|
57c1471 |
--
|
|
|
57c1471 |
1.7.1
|
|
|
57c1471 |
|