Prevent an illegal memory access when comparing the prefix of a section name regexp.
authorNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2022 14:57:17 +0000 (14:57 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2022 14:57:17 +0000 (14:57 +0000)
commit3bf5bf547a2ffdbd702804b95b3218040ac470dc
tree9a9b30b5263f3573a41ca857c67d68dac7b102a5
parent76a2bcc6b8b07ddfd5093773c4b5fd8e54752fbc
Prevent an illegal memory access when comparing the prefix of a section name regexp.

PR 29849
* ldlang.c (spec_match): Check that there is sufficient length in
the target name to match the spec's prefix.
ld/ChangeLog
ld/ldlang.c