aboutgitcodebugslistschat
path: root/test/lib/git:
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-03-27 15:34:28 +1100
committerStefano Brivio <sbrivio@redhat.com>2026-03-28 14:36:01 +0100
commit93c3e351f23561331824f2a2305bde3628676db5 (patch)
tree77fdb0c4b9a06f21fa4c7b371f5c79f3631d88df /test/lib/git:
parented187c353dffb0362941e1612d41307e7bff1783 (diff)
downloadpasst-93c3e351f23561331824f2a2305bde3628676db5.tar
passt-93c3e351f23561331824f2a2305bde3628676db5.tar.gz
passt-93c3e351f23561331824f2a2305bde3628676db5.tar.bz2
passt-93c3e351f23561331824f2a2305bde3628676db5.tar.lz
passt-93c3e351f23561331824f2a2305bde3628676db5.tar.xz
passt-93c3e351f23561331824f2a2305bde3628676db5.tar.zst
passt-93c3e351f23561331824f2a2305bde3628676db5.zip
ip: Define a bound for the string returned by ipproto_name()
ipproto_name() returns a static string of theoretically unbounded length. That's going to be inconvenient in future, so introduce IPPROTO_STRLEN giving an explicit bound on the length. Use static_assert() and some macros to ensure nothing we return can exceed this. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/git:')
0 files changed, 0 insertions, 0 deletions