# Re: \[PATCH\] evh\_bytechan: fix out of bounds accesses

- From: Segher Boessenkool \<hidden\>
- Date: 2020-01-14 08:31:39 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2020/01/9513655
- Thread: https://ratatoskr.run/linuxppc-dev/2020/01/9513607/t.md

```text
On Mon, Jan 13, 2020 at 07:10:11PM -0600, Timur Tabi wrote:
> Ah, I see now.  This is all coming back to me.
> 
> I would prefer that ev_byte_channel_send() is updated to access only 
> 'count' bytes.  If that means adding a memcpy to the 
> ev_byte_channel_send() itself, then so be it.  Trying to figure out how 
> to stuff n bytes into 4 32-bit registers is probably not worth the effort.

You have no working lswx I suppose?  :-)

/me slowly backs away


Segher
```
