namespace-util: explicitly specify namespace_info[]'s size
authorMike Yuan <me@yhndnzj.com>
Mon, 22 Jul 2024 18:02:03 +0000 (20:02 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 23 Jul 2024 17:30:54 +0000 (19:30 +0200)
commit30957ced45a62a576d4d87b704bd9042a085b2e4
tree7d52bb865f381b9b17a2349864db348cd289aaf7
parent7973f33e818d1fca5df21c1335579035ca8f91c1
namespace-util: explicitly specify namespace_info[]'s size

We do this already in all string lookup tables. This way
it's guaranteed that iterators which ends with _NAMESPACE_TYPE_MAX
wouldn't overrun the array.
src/basic/namespace-util.c