]> git.puffer.fish Git - mirror/frr.git/commit
tools/gcc-plugins: don't crash on array parameters 17104/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 15 Oct 2024 11:28:41 +0000 (13:28 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 15 Oct 2024 11:35:24 +0000 (13:35 +0200)
commit070ce19d0cb8078f0a7f8df0fa95be36c5ae2f42
tree5c432a23081969b46a272f9919b3e912e877534c
parentd1433ee9a8fa374ee653dcf1fe6e852481b17119
tools/gcc-plugins: don't crash on array parameters

Need to have arrays as a stop condition in this type normalization
function, like pointers and function pointers.  Actual arrays as
argument types are extremely rare to see because C has this
array-decay-to-pointer thing, but it can happen.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tools/gcc-plugins/frr-format.c