Skip to contentSkip to conversation

gdb: Fix CVE-2023-39129

PATCH Superseded [email protected] 3 participants 7 messages Feb 2, 2024 – Feb 14, 2024

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 gdb: Fix CVE-2023-39129

From: Deepthi Hemraj <[email protected]>

Issue: LIN1022-4854

---
 meta/recipes-devtools/gdb/gdb.inc             |  1 +
 .../gdb/gdb/0012-CVE-2023-39129.patch         | 50 +++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch
meta/recipes-devtools/gdb/gdb.inc +1 -0
index 099bd2d8f5..ad2b3ad4b7 100644
@@ -15,5 +15,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
            file://0009-Fix-invalid-sigprocmask-call.patch \
            file://0010-gdbserver-ctrl-c-handling.patch \
            file://0011-CVE-2023-39128.patch \
+	   file://0012-CVE-2023-39129.patch \
            "
 SRC_URI[sha256sum] = "1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32"
meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 2/2 gdb: Fix CVE-2023-39130

From: Deepthi Hemraj <[email protected]>

Issue: LIN1022-4855

---
 meta/recipes-devtools/gdb/gdb.inc             |   1 +
 .../gdb/gdb/0013-CVE-2023-39130.patch         | 326 ++++++++++++++++++
 2 files changed, 327 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0013-CVE-2023-39130.patch
meta/recipes-devtools/gdb/gdb.inc +1 -0
index ad2b3ad4b7..6c9fe60cab 100644
@@ -16,5 +16,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
            file://0010-gdbserver-ctrl-c-handling.patch \
            file://0011-CVE-2023-39128.patch \
 	   file://0012-CVE-2023-39129.patch \
+	   file://0013-CVE-2023-39130.patch \
            "
 SRC_URI[sha256sum] = "1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32"
meta/recipes-devtools/gdb/gdb/0013-CVE-2023-39130.patch new file +326 -0

326 lines not on this page · raw message

Signature · 1 line
2.43.0
#2 lore raw
In reply to [email protected]
Quoted 4 lines · Deepthi via lists.openembedded.org

From: Deepthi Hemraj <[email protected]>

Issue: LIN1022-4854

Please don't include internal windriver issue designators.

Also, please send your initial submission without a version number. If you need to resubmit, add a version number and include a comment after the --- line below indicating what has changed. Otherwise I am left to puzzle out which patch you intended I should take.

I have fixed this, so no need to resubmit this time.

Thanks,

Steve

Quoted 87 lines
---
 meta/recipes-devtools/gdb/gdb.inc             |  1 +
 .../gdb/gdb/0012-CVE-2023-39129.patch         | 50 +++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch
meta/recipes-devtools/gdb/gdb.inc +1 -0
index 099bd2d8f5..ad2b3ad4b7 100644
@@ -15,5 +15,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
            file://0009-Fix-invalid-sigprocmask-call.patch \
            file://0010-gdbserver-ctrl-c-handling.patch \
            file://0011-CVE-2023-39128.patch \
+          file://0012-CVE-2023-39129.patch \
            "
 SRC_URI[sha256sum] = "1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32"
meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch new file +50 -1
new file mode 100644
index 0000000000..63fb44d59a
@@ -0,0 +1,50 @@
+From: Keith Seitz <keiths@...>
+Date: Wed, 2 Aug 2023 15:35:11 +0000 (-0700)
+Subject: Verify COFF symbol stringtab offset
+X-Git-Tag: gdb-14-branchpoint~473
+X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a
+
+Verify COFF symbol stringtab offset
+
+This patch addresses an issue with malformed/fuzzed debug information that
+was recently reported in gdb/30639. That bug specifically deals with
+an ASAN issue, but the reproducer provided by the reporter causes a
+another failure outside of ASAN:
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a]
+
+CVE: CVE-2023-39129
+
+Signed-off-by: Deepthi Hemraj <[email protected]>
+
+diff --git a/gdb/coffread.c b/gdb/coffread.c
+--- a/gdb/coffread.c
++++ b/gdb/coffread.c
+@@ -159,6 +160,7 @@ static file_ptr linetab_offset;
+ static file_ptr linetab_size;
+
+ static char *stringtab = NULL;
++static long stringtab_length = 0;
+
+ extern void stabsread_clear_cache (void);
+
+@@ -1303,6 +1298,7 @@ init_stringtab (bfd *abfd, file_ptr offset, gdb::unique_xmalloc_ptr<char> *stora
+   /* This is in target format (probably not very useful, and not
+      currently used), not host format.  */
+   memcpy (stringtab, lengthbuf, sizeof lengthbuf);
++  stringtab_length = length;
+   if (length == sizeof length)        /* Empty table -- just the count.  */
+     return 0;
+
+@@ -1322,8 +1318,9 @@ getsymname (struct internal_syment *symbol_entry)
+
+   if (symbol_entry->_n._n_n._n_zeroes == 0)
+     {
+-      /* FIXME: Probably should be detecting corrupt symbol files by
+-       seeing whether offset points to within the stringtab.  */
++      if (symbol_entry->_n._n_n._n_offset > stringtab_length)
++      error (_("COFF Error: string table offset (%ld) outside string table (length %ld)"),
++             symbol_entry->_n._n_n._n_offset, stringtab_length);
+       result = stringtab + symbol_entry->_n._n_n._n_offset;
+     }
+   else
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#194787): https://lists.openembedded.org/g/openembedded-core/message/194787
Mute This Topic: https://lists.openembedded.org/mt/104117785/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 7 lines · Steve Sakoman via lists.openembedded.org
Quoted 3 lines · Deepthi via lists.openembedded.org

From: Deepthi Hemraj<[email protected]>

Issue: LIN1022-4854

Please don't include internal windriver issue designators.

Agreed. Please only add those if needed when doing WR reviews.

Quoted 8 lines

Also, please send your initial submission without a version number. If you need to resubmit, add a version number and include a comment after the --- line below indicating what has changed. Otherwise I am left to puzzle out which patch you intended I should take.

I have fixed this, so no need to resubmit this time.

Thanks Steve.

Also there are two threads with the same git shortlog / email subject:
   [OE-core] [kirkstone][PATCH V3 1/2] gdb: Fix CVE-2023-39129

This is the second one and the first was:
https://lists.openembedded.org/g/openembedded-core/message/194789
I'll reply there to ask you to change the git shortlog.

I'm a bit concerned about the fix since the last comment in:

https://sourceware.org/bugzilla/show_bug.cgi?id=30640

says:
   " Fixed by 58abdf88782 (and follow-up patches from mjw). "

Deepthi,
What can you find out about the "follow-up" patches?

I suspect that we won't need to revert this commit but that there may be more work to be done.

Steve, will you keep what you have from this commit in your tree?

../Randy

Quoted 94 lines

Thanks,

Steve

Quoted 89 lines
---
  meta/recipes-devtools/gdb/gdb.inc             |  1 +
  .../gdb/gdb/0012-CVE-2023-39129.patch         | 50 +++++++++++++++++++
  2 files changed, 51 insertions(+)

create mode 100644 meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch

meta/recipes-devtools/gdb/gdb.inc +1 -0
index 099bd2d8f5..ad2b3ad4b7 100644
@@ -15,5 +15,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
             file://0009-Fix-invalid-sigprocmask-call.patch  \
             file://0010-gdbserver-ctrl-c-handling.patch  \
             file://0011-CVE-2023-39128.patch  \
+file://0012-CVE-2023-39129.patch  \
             "
  SRC_URI[sha256sum] = "1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32"
meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch new file +50 -1
new file mode 100644
index 0000000000..63fb44d59a
@@ -0,0 +1,50 @@
+From: Keith Seitz<keiths@...>
+Date: Wed, 2 Aug 2023 15:35:11 +0000 (-0700)
+Subject: Verify COFF symbol stringtab offset
+X-Git-Tag: gdb-14-branchpoint~473
+X-Git-Url:https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a
+
+Verify COFF symbol stringtab offset
+
+This patch addresses an issue with malformed/fuzzed debug information that
+was recently reported in gdb/30639. That bug specifically deals with
+an ASAN issue, but the reproducer provided by the reporter causes a
+another failure outside of ASAN:
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a]
+
+CVE: CVE-2023-39129
+
+Signed-off-by: Deepthi Hemraj<[email protected]>
+
+diff --git a/gdb/coffread.c b/gdb/coffread.c
+--- a/gdb/coffread.c
++++ b/gdb/coffread.c
+@@ -159,6 +160,7 @@ static file_ptr linetab_offset;
+ static file_ptr linetab_size;
+
+ static char *stringtab = NULL;
++static long stringtab_length = 0;
+
+ extern void stabsread_clear_cache (void);
+
+@@ -1303,6 +1298,7 @@ init_stringtab (bfd *abfd, file_ptr offset, gdb::unique_xmalloc_ptr<char> *stora
+   /* This is in target format (probably not very useful, and not
+      currently used), not host format.  */
+   memcpy (stringtab, lengthbuf, sizeof lengthbuf);
++  stringtab_length = length;
+   if (length == sizeof length)        /* Empty table -- just the count.  */
+     return 0;
+
+@@ -1322,8 +1318,9 @@ getsymname (struct internal_syment *symbol_entry)
+
+   if (symbol_entry->_n._n_n._n_zeroes == 0)
+     {
+-      /* FIXME: Probably should be detecting corrupt symbol files by
+-       seeing whether offset points to within the stringtab.  */
++      if (symbol_entry->_n._n_n._n_offset > stringtab_length)
++      error (_("COFF Error: string table offset (%ld) outside string table (length %ld)"),
++             symbol_entry->_n._n_n._n_offset, stringtab_length);
+       result = stringtab + symbol_entry->_n._n_n._n_offset;
+     }
+   else
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#194805):https://lists.openembedded.org/g/openembedded-core/message/194805 Mute This Topic:https://lists.openembedded.org/mt/104117785/3616765
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#4 lore raw
Quoted 43 lines · Randy MacLeod

On 2024-02-02 10:57 a.m., Steve Sakoman via lists.openembedded.org wrote:

On Fri, Feb 2, 2024 at 2:01 AM Hemraj, Deepthi via lists.openembedded.org <[email protected]> wrote:

From: Deepthi Hemraj <[email protected]>

Issue: LIN1022-4854

Please don't include internal windriver issue designators.

Agreed. Please only add those if needed when doing WR reviews.

Also, please send your initial submission without a version number. If you need to resubmit, add a version number and include a comment after the --- line below indicating what has changed. Otherwise I am left to puzzle out which patch you intended I should take.

I have fixed this, so no need to resubmit this time.

Thanks Steve.

Also there are two threads with the same git shortlog / email subject:

   [OE-core] [kirkstone][PATCH V3 1/2] gdb: Fix CVE-2023-39129

This is the second one and the first was:
https://lists.openembedded.org/g/openembedded-core/message/194789
I'll reply there to ask you to change the git shortlog.

I'm a bit concerned about the fix since the last comment in:

   https://sourceware.org/bugzilla/show_bug.cgi?id=30640

says:
" Fixed by 58abdf88782 (and follow-up patches from mjw). "

Quoted 7 lines

Deepthi,
What can you find out about the "follow-up" patches?

I suspect that we won't need to revert this commit but that there may be more work to be done.

Steve, will you keep what you have from this commit in your tree?

Yes, I will keep it in -nut for now (assuming it passes autobuilder testing)

Steve

Quoted 101 lines

../Randy

Thanks,

Steve

---
 meta/recipes-devtools/gdb/gdb.inc             |  1 +
 .../gdb/gdb/0012-CVE-2023-39129.patch         | 50 +++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch
meta/recipes-devtools/gdb/gdb.inc +1 -0
index 099bd2d8f5..ad2b3ad4b7 100644
@@ -15,5 +15,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
            file://0009-Fix-invalid-sigprocmask-call.patch \
            file://0010-gdbserver-ctrl-c-handling.patch \
            file://0011-CVE-2023-39128.patch \
+          file://0012-CVE-2023-39129.patch \
            "
 SRC_URI[sha256sum] = "1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32"
meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch new file +50 -1
new file mode 100644
index 0000000000..63fb44d59a
@@ -0,0 +1,50 @@
+From: Keith Seitz <keiths@...>
+Date: Wed, 2 Aug 2023 15:35:11 +0000 (-0700)
+Subject: Verify COFF symbol stringtab offset
+X-Git-Tag: gdb-14-branchpoint~473
+X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a
+
+Verify COFF symbol stringtab offset
+
+This patch addresses an issue with malformed/fuzzed debug information that
+was recently reported in gdb/30639. That bug specifically deals with
+an ASAN issue, but the reproducer provided by the reporter causes a
+another failure outside of ASAN:
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a]
+
+CVE: CVE-2023-39129
+
+Signed-off-by: Deepthi Hemraj <[email protected]>
+
+diff --git a/gdb/coffread.c b/gdb/coffread.c
+--- a/gdb/coffread.c
++++ b/gdb/coffread.c
+@@ -159,6 +160,7 @@ static file_ptr linetab_offset;
+ static file_ptr linetab_size;
+
+ static char *stringtab = NULL;
++static long stringtab_length = 0;
+
+ extern void stabsread_clear_cache (void);
+
+@@ -1303,6 +1298,7 @@ init_stringtab (bfd *abfd, file_ptr offset, gdb::unique_xmalloc_ptr<char> *stora
+   /* This is in target format (probably not very useful, and not
+      currently used), not host format.  */
+   memcpy (stringtab, lengthbuf, sizeof lengthbuf);
++  stringtab_length = length;
+   if (length == sizeof length)        /* Empty table -- just the count.  */
+     return 0;
+
+@@ -1322,8 +1318,9 @@ getsymname (struct internal_syment *symbol_entry)
+
+   if (symbol_entry->_n._n_n._n_zeroes == 0)
+     {
+-      /* FIXME: Probably should be detecting corrupt symbol files by
+-       seeing whether offset points to within the stringtab.  */
++      if (symbol_entry->_n._n_n._n_offset > stringtab_length)
++      error (_("COFF Error: string table offset (%ld) outside string table (length %ld)"),
++             symbol_entry->_n._n_n._n_offset, stringtab_length);
+       result = stringtab + symbol_entry->_n._n_n._n_offset;
+     }
+   else
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#194805): https://lists.openembedded.org/g/openembedded-core/message/194805
Mute This Topic: https://lists.openembedded.org/mt/104117785/3616765
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
# Randy MacLeod
# Wind River Linux

#5 lore raw

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Steve Sakoman<mailto:[email protected]>
Sent: Friday, February 2, 2024 10:04 PM
To: MacLeod, Randy<mailto:[email protected]>
Cc: Hemraj, Deepthi<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Subject: Re: [OE-core] [kirkstone][PATCH V3 1/2] gdb: Fix CVE-2023-39129

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 43 lines · Randy MacLeod

On 2024-02-02 10:57 a.m., Steve Sakoman via lists.openembedded.org wrote:

On Fri, Feb 2, 2024 at 2:01 AM Hemraj, Deepthi via lists.openembedded.org <[email protected]> wrote:

From: Deepthi Hemraj <[email protected]>

Issue: LIN1022-4854

Please don't include internal windriver issue designators.

Agreed. Please only add those if needed when doing WR reviews.

Also, please send your initial submission without a version number. If you need to resubmit, add a version number and include a comment after the --- line below indicating what has changed. Otherwise I am left to puzzle out which patch you intended I should take.

I have fixed this, so no need to resubmit this time.

Thanks Steve.

Also there are two threads with the same git shortlog / email subject:

   [OE-core] [kirkstone][PATCH V3 1/2] gdb: Fix CVE-2023-39129

This is the second one and the first was:
https://lists.openembedded.org/g/openembedded-core/message/194789
I'll reply there to ask you to change the git shortlog.

I'm a bit concerned about the fix since the last comment in:

   https://sourceware.org/bugzilla/show_bug.cgi?id=30640

says:
" Fixed by 58abdf88782 (and follow-up patches from mjw). "

Quoted 7 lines

Deepthi,
What can you find out about the "follow-up" patches?

I suspect that we won't need to revert this commit but that there may be more work to be done.

Steve, will you keep what you have from this commit in your tree?

Yes, I will keep it in -nut for now (assuming it passes autobuilder testing)

Steve

Quoted 7 lines

../Randy

Thanks,

Steve

Hi Randy,

Quoted 4 lines
Quoted 4 lines

" Fixed by 58abdf88782 (and follow-up patches from mjw). "

Deepthi,
What can you find out about the "follow-up" patches?

Based on your comments on the follow-up patches from mjw (LIN1022-5854), these two patches were found.
https://github.com/TOUCHTHEARTWORK/binutils/commit/91df9a6f810bca02883dae9275715b4960ea02f0
https://github.com/TOUCHTHEARTWORK/binutils/commit/a6ce491c3d926650407927a338d9678ca983bee4

However these patches modifies the error messages and does not have any affect on the code. Hence they don't seem to be relevant for us.

Thank you,
Deepthi H

Quoted 94 lines
---
 meta/recipes-devtools/gdb/gdb.inc             |  1 +
 .../gdb/gdb/0012-CVE-2023-39129.patch         | 50 +++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch
meta/recipes-devtools/gdb/gdb.inc +1 -0
index 099bd2d8f5..ad2b3ad4b7 100644
@@ -15,5 +15,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
            file://0009-Fix-invalid-sigprocmask-call.patch \
            file://0010-gdbserver-ctrl-c-handling.patch \
            file://0011-CVE-2023-39128.patch \
+          file://0012-CVE-2023-39129.patch \
            "
 SRC_URI[sha256sum] = "1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32"
meta/recipes-devtools/gdb/gdb/0012-CVE-2023-39129.patch new file +50 -1
new file mode 100644
index 0000000000..63fb44d59a
@@ -0,0 +1,50 @@
+From: Keith Seitz <keiths@...>
+Date: Wed, 2 Aug 2023 15:35:11 +0000 (-0700)
+Subject: Verify COFF symbol stringtab offset
+X-Git-Tag: gdb-14-branchpoint~473
+X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a
+
+Verify COFF symbol stringtab offset
+
+This patch addresses an issue with malformed/fuzzed debug information that
+was recently reported in gdb/30639. That bug specifically deals with
+an ASAN issue, but the reproducer provided by the reporter causes a
+another failure outside of ASAN:
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=58abdf887821a5da09ba184c6e400a3bc5cccd5a]
+
+CVE: CVE-2023-39129
+
+Signed-off-by: Deepthi Hemraj <[email protected]>
+
+diff --git a/gdb/coffread.c b/gdb/coffread.c
+--- a/gdb/coffread.c
++++ b/gdb/coffread.c
+@@ -159,6 +160,7 @@ static file_ptr linetab_offset;
+ static file_ptr linetab_size;
+
+ static char *stringtab = NULL;
++static long stringtab_length = 0;
+
+ extern void stabsread_clear_cache (void);
+
+@@ -1303,6 +1298,7 @@ init_stringtab (bfd *abfd, file_ptr offset, gdb::unique_xmalloc_ptr<char> *stora
+   /* This is in target format (probably not very useful, and not
+      currently used), not host format.  */
+   memcpy (stringtab, lengthbuf, sizeof lengthbuf);
++  stringtab_length = length;
+   if (length == sizeof length)        /* Empty table -- just the count.  */
+     return 0;
+
+@@ -1322,8 +1318,9 @@ getsymname (struct internal_syment *symbol_entry)
+
+   if (symbol_entry->_n._n_n._n_zeroes == 0)
+     {
+-      /* FIXME: Probably should be detecting corrupt symbol files by
+-       seeing whether offset points to within the stringtab.  */
++      if (symbol_entry->_n._n_n._n_offset > stringtab_length)
++      error (_("COFF Error: string table offset (%ld) outside string table (length %ld)"),
++             symbol_entry->_n._n_n._n_offset, stringtab_length);
+       result = stringtab + symbol_entry->_n._n_n._n_offset;
+     }
+   else
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#194805): https://lists.openembedded.org/g/openembedded-core/message/194805
Mute This Topic: https://lists.openembedded.org/mt/104117785/3616765
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
# Randy MacLeod
# Wind River Linux

#6 lore raw
Quoted 8 lines · Deepthi

Hi Randy,

Quoted 4 lines
Quoted 4 lines

    " Fixed by 58abdf88782 (and follow-up patches from mjw). "

Deepthi,
What can you find out about the "follow-up" patches?

Quoted 8 lines

Based on your comments on the follow-up patches from mjw (LIN1022-5854), these two patches were found.

https://github.com/TOUCHTHEARTWORK/binutils/commit/91df9a6f810bca02883dae9275715b4960ea02f0

https://github.com/TOUCHTHEARTWORK/binutils/commit/a6ce491c3d926650407927a338d9678ca983bee4

However these patches modifies the error messages and does not have any affect on the code. Hence they don't seem to be relevant for us.

Okay, thanks for checking and it seems there are no additional commits and Steve has merged the fix to kirkstone so we're done !

../Randy

Quoted 4 lines

Thank you,

Deepthi H

Signature · 2 lines
# Randy MacLeod
# Wind River Linux