Re: [PATCH RFC 2/3] powerpc/ps3: refactor strncpy usage attempt 2

2023-08-14 Thread Kees Cook
On Fri, Aug 11, 2023 at 09:19:20PM +, Justin Stitt wrote: > This approach tries to use `make_field` inside of `make_first_field`. > This comes with some weird implementation as to get the same result we > need to first subtract `index` from the `make_field` result whilst being > careful with

[PATCH RFC 2/3] powerpc/ps3: refactor strncpy usage attempt 2

2023-08-11 Thread Justin Stitt
This approach tries to use `make_field` inside of `make_first_field`. This comes with some weird implementation as to get the same result we need to first subtract `index` from the `make_field` result whilst being careful with order of operations. We then have to add index back. The behavior