On 10/22/18 8:59 AM, Bernd Edlinger wrote:
> Hi!
> 
> This fixes an ICE which was exposed by a previous patch of mine,
> and a wrong transformation from strcat_chk => strcpy_chk,
> which fails to adjust the object size, thus allowing too much
> memory to be accessed.
> 
> 
> Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
> Is it OK for trunk?
> 
> 
> Thanks
> Bernd.
> 
> 
> patch-pr87672.diff
> 
> gcc:
> 2018-10-22  Bernd Edlinger  <bernd.edlin...@hotmail.de>
> 
>       PR tree-optimization/87672
>       * gimple-fold.c (gimple_fold_builtin_stxcpy_chk): Gimplify.
>       * tree-ssa-strlen.c (handle_builtin_strcat): Adjust object size.
> 
> testsuite:
> 2018-08-26  Bernd Edlinger  <bernd.edlin...@hotmail.de>
> 
>       PR tree-optimization/87672
>       * gcc.dg/pr87672.c: New test.
OK
jeff

Reply via email to