PR28753, buffer overflow in read_section_stabs_debugging_info
PR 28753 * rddbg.c (read_section_stabs_debugging_info): Don't read past end of section when concatentating stab strings.
This commit is contained in:
parent
1f01799f55
commit
085b299b71
@ -210,7 +210,7 @@ read_section_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount,
|
||||
an attempt to read the byte before 'strings' would occur. */
|
||||
while ((len = strlen (s)) > 0
|
||||
&& s[len - 1] == '\\'
|
||||
&& stab + 12 < stabs + stabsize)
|
||||
&& stab + 16 <= stabs + stabsize)
|
||||
{
|
||||
char *p;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user