Re: [PATCH] c++: Fix another crash with invalid new operators [PR117463]

2024-11-06 Thread Jason Merrill
On 11/6/24 2:23 PM, Simon Martin wrote: Even though this PR is very close to PR117101, it's not addressed by the fix I made through r15-4958-g5821f5c8c89a05 because cxx_placement_new_fn has the very same issue as std_placement_new_fn_p used to have. This patch fixes the issue exactly the same, b

[PATCH] c++: Fix another crash with invalid new operators [PR117463]

2024-11-06 Thread Simon Martin
Even though this PR is very close to PR117101, it's not addressed by the fix I made through r15-4958-g5821f5c8c89a05 because cxx_placement_new_fn has the very same issue as std_placement_new_fn_p used to have. This patch fixes the issue exactly the same, by checking the first parameter against NUL