Re: [iptables PATCH] libiptc: Avoid gcc-10 zero-length array warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 2020-10-08 16:58, Phil Sutter wrote:
>
>While the question of whether kernel UAPI headers should adhere to
>strict ISO C or not may be debatable, my motivation for working around
>the situation in user space comes from Gustavo's complaints when I tried
>to convert the relevant struct members into flexible arrays. He
>apparently is a burnt child looking at commit 1e6e9d0f4859e ("uapi:
>revert flexible-array conversions").

Ugh... RDMA.

iptables does not rely or even do such embedding nonsense. When we
have a flexible array member T x[0] or T x[] somewhere, we really do
mean that Ts follow, not some Us like in the RDMA case.

It's probably fair to restore [] for our headers.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux