Re: [PATCH] tree-object-size: Robustify alloc_size attribute handling [PR113013]

2023-12-18 Thread Richard Biener
On Mon, Dec 18, 2023 at 9:35 AM Jakub Jelinek wrote: > > Hi! > > The following testcase ICEs because we aren't careful enough with > alloc_size attribute. We do check that such an argument exists > (although wouldn't handle correctly functions with more than INT_MAX > arguments), but didn't

[PATCH] tree-object-size: Robustify alloc_size attribute handling [PR113013]

2023-12-18 Thread Jakub Jelinek
Hi! The following testcase ICEs because we aren't careful enough with alloc_size attribute. We do check that such an argument exists (although wouldn't handle correctly functions with more than INT_MAX arguments), but didn't check that it is scalar integer, the ICE is trying to fold_convert a