https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102151
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think the malloc needs to be at least the sizeof which is why it is complaining.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 31 Aug 2021 19:48:23 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102151
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think the malloc needs to be at least the sizeof which is why it is complaining.