Re: off-by-one buffer overflow patch

2021-03-27 Thread dhumieres.dominique--- via Fortran

Le 2021-03-27 06:36, Jerry DeLisle a écrit :

On 3/26/21 10:38 AM, dhumieres.dominique--- via Fortran wrote:

I have proposed a similar patch in pr95998.

I cannot commit to git!-(

Thanks

Dominique

I do not see a patch in 95998.  Do you need help to do a commit?

Jerry


I was too quick and did not realize that I did not post the actual patch
I have in my working tree, but the Steve's one does the trick.

And yes I need help to do a commit.

Thanks

Dominique


Re: [Patch, fortran] 99307 - FAIL: gfortran.dg/class_assign_4.f90 execution test

2021-03-27 Thread dhumieres.dominique--- via Fortran

Le 2021-03-26 19:20, Paul Richard Thomas a écrit :

Hi Dominique,

What I meant was a test that would confirm the fix on all targets.

BTW thanks for testing the patch!

A

Paul



The second patch works as the first one.
IMO a test case for all targets should not delay the fix.

Dominique


Re: off-by-one buffer overflow patch

2021-03-27 Thread Jerry DeLisle

Pushed:

To git+ssh://gcc.gnu.org/git/gcc.git
   651684b462f..01685676a93  master -> master

Author: Steve Kargl 
Date:   Sat Mar 27 15:02:16 2021 -0700

    fortran: Fix off-by-one in buffer sizes.

    gcc/fortran/ChangeLog:

    * misc.c (gfc_typename): Fix off-by-one in buffer sizes.

Regards,

Jerry

On 3/27/21 6:28 AM, dhumieres.domini...@free.fr wrote:

Le 2021-03-27 06:36, Jerry DeLisle a écrit :

On 3/26/21 10:38 AM, dhumieres.dominique--- via Fortran wrote:

I have proposed a similar patch in pr95998.

I cannot commit to git!-(

Thanks

Dominique

I do not see a patch in 95998.  Do you need help to do a commit?

Jerry


I was too quick and did not realize that I did not post the actual patch
I have in my working tree, but the Steve's one does the trick.

And yes I need help to do a commit.

Thanks

Dominique




Re: off-by-one buffer overflow patch

2021-03-27 Thread Steve Kargl via Fortran


On Sat, Mar 27, 2021 at 03:11:05PM -0700, Jerry DeLisle wrote:
> Pushed:
> 
> To git+ssh://gcc.gnu.org/git/gcc.git
>    651684b462f..01685676a93  master -> master
> 
> Author: Steve Kargl 
> Date:   Sat Mar 27 15:02:16 2021 -0700
> 
>     fortran: Fix off-by-one in buffer sizes.
> 
>     gcc/fortran/ChangeLog:
> 
>     * misc.c (gfc_typename): Fix off-by-one in buffer sizes.
> 
> Regards,
> 
> Jerry

Thanks for committing the patch.

-- 
steve