Simple mangled names (only with identifiers) are not being covered by coverage
tests.
Signed-off-by: Luís Ferreira
libiberty/ChangeLog:
* testsuite/d-demangle-expected: add test cases for simple special
mangles
---
libiberty/testsuite/d-demangle-expected | 8
1 file changed
Coverage tests doesn't include a case for function literals
Signed-off-by: Luís Ferreira
libiberty/ChangeLog:
* testsuite/d-demangle-expected: add test case for function literals
---
libiberty/testsuite/d-demangle-expected | 4
1 file changed, 4 insertions(+)
diff --
On Wed, 2021-10-13 at 16:42 +0100, Luís Ferreira wrote:
> On Wed, 2021-10-13 at 16:34 +0100, Luís Ferreira wrote:
> > Since Tuple!() is templated type from standard library, this can
> > make
> > two
> > demangled names undistinguishable.
> >
> > Signed-of
Since Tuple!() is templated type from standard library, this can make two
demangled names undistinguishable.
Signed-off-by: Luís Ferreira
libiberty/ChangeLog:
* d-demangle.c (dlang_parse_tuple): use tuple() instead of Tuple!()
* testsuite/d-demangle-expected: rename the tests
Currently _D8demangle4testFYv and _D8demangle4testFXv report the same demangled
symbol and they are not the same. The official demangler reports
"demangle.test(, ...)", which is the distinguishable way to do it.
Signed-off-by: Luís Ferreira
libiberty/ChangeLog:
* d-
On Wed, 2021-10-13 at 16:34 +0100, Luís Ferreira wrote:
> Since Tuple!() is templated type from standard library, this can make
> two
> demangled names undistinguishable.
>
> Signed-off-by: Luís Ferreira
>
> libiberty/ChangeLog:
>
> * d-demangle.c (dl
Since Tuple!() is templated type from standard library, this can make two
demangled names undistinguishable.
Signed-off-by: Luís Ferreira
libiberty/ChangeLog:
* d-demangle.c (dlang_parse_tuple): use tuple() instead of Tuple!()
---
libiberty/d-demangle.c | 2 +-
1 file changed, 1
On Tue, 2021-10-12 at 15:40 -0400, Eric Gallager wrote:
> On Tue, Oct 12, 2021 at 8:55 AM Luís Ferreira
> wrote:
> >
> > On Fri, 2021-10-08 at 22:11 +0200, Iain Buclaw wrote:
> > > Excerpts from Luís Ferreira's message of October 8, 2021 7:08 pm:
> > >
On Mon, 2021-10-04 at 09:30 +0200, Iain Buclaw wrote:
> > On 30/09/2021 02:48 Luís Ferreira wrote:
> >
> >
> > There is some function names with `dlang_parse_` prefix and some
> > with only
> > `dlang_` prefix that does parsing. The same happens with
&
(dlang_template_args): Rename function to
dlang_parse_template_args
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 168 -
1 file changed, 84 insertions(+), 84 deletions(-)
diff --git a/libiberty/d-demangle.c
On Tue, 2021-10-12 at 08:42 -0600, Jeff Law wrote:
>
>
> On 10/12/2021 8:06 AM, Luís Ferreira wrote:
>
> > Those parenthesis doesn't increase readability at all and this
> > patch makes the
> > source code a bit more consistent with the rest of th
string_append and string_appendn for
single chars to use string_appendc function.
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 60 --
1 file changed, 34 insertions(+), 26 deletions(-)
diff --git a/libiberty/d-demangle.c
On Mon, 2021-10-04 at 09:33 +0200, ibuc...@gdcproject.org wrote:
> > On 29/09/2021 18:26 Luís Ferreira wrote:
> >
> >
> > Those parenthesis doesn't increase readability at all and this
> > patch makes the
> > source code a bit more consiste
On Mon, 2021-10-04 at 10:40 +0200, Andreas Schwab wrote:
> On Sep 29 2021, Luís Ferreira wrote:
>
> > diff --git a/libiberty/d-demangle.c b/libiberty/d-demangle.c
> > index 3adf7b562d1..a05e72d8efe 100644
> > --- a/libiberty/d-demangle.c
> > +++ b/libiberty/d-dem
> Please open an issue on bugzilla, fixes towards it can then be
> > > referenced in the commit message/patch posted here.
> > >
> > > Iain.
> >
> > You mean for this current issue? The discussion was about future bug
> > reports reported by the O
here.
>
> Iain.
You mean for this current issue? The discussion was about future bug
reports reported by the OSS fuzzer workers. I can also open an issue on
the bugzilla for this issue, please clarify it and let me know :)
--
Sincerely,
Luís Ferreira @ lsferreira.net
signature.asc
Description: This is a digitally signed message part
On Tue, 2021-10-05 at 21:49 -0400, Eric Gallager wrote:
> On Tue, Oct 5, 2021 at 1:28 PM Luís Ferreira
> wrote:
> >
> > On Tue, 2021-10-05 at 09:00 -0600, Jeff Law wrote:
> > >
> > >
> > > On 10/4/2021 10:52 AM, Luís Ferreira wrote:
> > &g
On Tue, 2021-10-05 at 18:13 +0100, Luís Ferreira wrote:
> This patch fixes a bug on the D demangler by parsing and skip anonymous
> symbols
> correctly, according the ABI specification. Furthermore, it also
> includes tests
> to cover anonymous symbols.
>
> The spec specif
On Tue, 2021-10-05 at 18:13 +0100, Luís Ferreira wrote:
> This patch fixes a bug on the D demangler by parsing and skip
> anonymous symbols
> correctly, according the ABI specification. Furthermore, it also
> includes tests
> to cover anonymous symbols.
>
> The spec specif
On Tue, 2021-10-05 at 09:00 -0600, Jeff Law wrote:
>
>
> On 10/4/2021 10:52 AM, Luís Ferreira wrote:
> > On Thu, 2021-09-23 at 09:50 -0600, Jeff Law wrote:
> > >
> > > On 9/23/2021 4:16 AM, ibuclaw--- via Gcc-patches wrote:
> > > > > On
]: https://dlang.org/spec/abi.html#SymbolName
ChangeLog:
libiberty/
* d-demangle.c (dlang_parse_qualified): Handle anonymous symbols
correctly.
* testsuite/d-demangle-expected: New tests to cover anonymous symbols.
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c
On Thu, 2021-09-23 at 09:50 -0600, Jeff Law wrote:
>
>
> On 9/23/2021 4:16 AM, ibuclaw--- via Gcc-patches wrote:
> > > On 22/09/2021 03:10 Luís Ferreira wrote:
> > >
> > >
> > > Currently a stack/heap overflow may happen if a crafted mangle
On Sun, 2021-10-03 at 15:55 -0600, Jeff Law wrote:
>
>
> On 9/29/2021 7:08 PM, Luís Ferreira wrote:
> > This patch allows the compiler to efficiently generate jump tables
> > instead of
> > using if-else-if.
> >
> > Signed-off-by: Luís Ferreira
Noted.
On Fri, 2021-10-01 at 11:28 -0600, Jeff Law wrote:
>
>
> On 9/29/2021 6:50 PM, Luís Ferreira wrote:
>
> > This patch adds a missing format parameter that prevents d-
> > demangle-expected
> > test collection from running successfully.
> >
> &g
gt; >
> >
> > On 9/23/2021 4:17 AM, ibuclaw--- via Gcc-patches wrote:
> > > > On 22/09/2021 03:31 Luís Ferreira wrote:
> > > >
> > > >
> > > > This patch prevents dereferencing a null reference on a crafted
> > > > malfo
This patch allows the compiler to efficiently generate jump tables instead of
using if-else-if.
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 44 +++---
1 file changed, 20 insertions(+), 24 deletions(-)
diff --git a/libiberty/d-demangle.c b
This patch adds a missing format parameter that prevents d-demangle-expected
test collection from running successfully.
Signed-off-by: Luís Ferreira
---
libiberty/testsuite/d-demangle-expected | 1 +
1 file changed, 1 insertion(+)
diff --git a/libiberty/testsuite/d-demangle-expected
b
-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 168 -
1 file changed, 84 insertions(+), 84 deletions(-)
diff --git a/libiberty/d-demangle.c b/libiberty/d-demangle.c
index 3adf7b562d1..161bd7abd91 100644
--- a/libiberty/d-demangle.c
+++ b/libiberty/d
Those parenthesis doesn't increase readability at all and this patch makes the
source code a bit more consistent with the rest of the dereferencing
assignments.
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff
This may be optimized by some modern smart compilers inliner, but since
strlen can be an external source, this can produce unoptimized code.
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 60 --
1 file changed, 34 insertions(+), 26 deletions
t.
On Thu, 2021-09-23 at 12:16 +0200, ibuc...@gdcproject.org wrote:
> > On 22/09/2021 03:10 Luís Ferreira wrote:
> >
> >
> > Currently a stack/heap overflow may happen if a crafted mangle is
> > maliciously used to cause denial of service, such as intentional
> &
This patch prevents dereferencing a null reference on a crafted
malformed magled name, often causing SIGSEGV to be raised.
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 2 +-
libiberty/testsuite/d-demangle-expected | 5 -
2 files changed, 5 insertions(+), 2
Currently a stack/heap overflow may happen if a crafted mangle is
maliciously used to cause denial of service, such as intentional
crashes
by accessing a reserved memory space.
Signed-off-by: Luís Ferreira
---
libiberty/d-demangle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
33 matches
Mail list logo