Re: [PATCH] sccvn: Fix buffer overflow in push_partial_def [PR94300]

2020-03-25 Thread Richard Biener
On Wed, 25 Mar 2020, Jakub Jelinek wrote: > Hi! > > The following testcase is miscompiled, because there is a buffer overflow > in push_partial_def in the little-endian case when working 64-byte vectors. > The code computes the number of bytes we need in the BUFFER: NEEDED_LEN, > which is

[PATCH] sccvn: Fix buffer overflow in push_partial_def [PR94300]

2020-03-25 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase is miscompiled, because there is a buffer overflow in push_partial_def in the little-endian case when working 64-byte vectors. The code computes the number of bytes we need in the BUFFER: NEEDED_LEN, which is rounded up number of bits we need. Then the code