Re: [PATCH] wide-int: Fix wide_int division/remainder [PR112733]

2023-11-29 Thread Richard Biener
On Wed, 29 Nov 2023, Jakub Jelinek wrote: > Hi! > > This patch fixes the other half of the PR, where we were crashing on the > UNSIGNED widest_int modulo of 1 % -128 (where the -128 in UNSIGNED is > 131072 bit 0xf...f80). > The patch actually has 2 independent parts, if you want, they cou

[PATCH] wide-int: Fix wide_int division/remainder [PR112733]

2023-11-29 Thread Jakub Jelinek
Hi! This patch fixes the other half of the PR, where we were crashing on the UNSIGNED widest_int modulo of 1 % -128 (where the -128 in UNSIGNED is 131072 bit 0xf...f80). The patch actually has 2 independent parts, if you want, they could be split out. The fix for the divmod buffer overflow