<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libnl-tiny/include/netlink/genl, branch master</title>
<subtitle>Tiny OpenWrt fork of libnl</subtitle>
<id>https://git-03.infra.openwrt.org/project/libnl-tiny/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/libnl-tiny/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libnl-tiny/'/>
<updated>2023-07-01T10:03:05Z</updated>
<entry>
<title>Make struct nla_policy and struct nlattr const</title>
<updated>2023-07-01T10:03:05Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2023-04-02T00:38:04Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libnl-tiny/commit/?id=d433990c00e804593f253cc709b8fe901492b530'/>
<id>urn:sha1:d433990c00e804593f253cc709b8fe901492b530</id>
<content type='text'>
Make the struct nla_policy and the struct nlattr const in many places
like it is done in full libnl. This brings our libnl-tiny closer to the
upstream version.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>libnl-tiny: fix duplicated branch in family.h</title>
<updated>2023-01-06T18:55:57Z</updated>
<author>
<name>Jesus Fernandez Manzano</name>
</author>
<published>2022-12-13T17:14:33Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libnl-tiny/commit/?id=f5d9b7e4f534a69cbd35c3f150fa6d57b9d631e4'/>
<id>urn:sha1:f5d9b7e4f534a69cbd35c3f150fa6d57b9d631e4</id>
<content type='text'>
Duplicated branch in function genl_family_get_maxattr().
Detected by gcc with -Werror=duplicated-branches.

libnl-tiny/netlink/genl/family.h:118:5: error: this condition has
identical branches [-Werror=duplicated-branches]
  if (family-&gt;ce_mask &amp; FAMILY_ATTR_MAXATTR)

Signed-off-by: Jesus Fernandez Manzano &lt;jesus.manzano@galgus.net&gt;
</content>
</entry>
<entry>
<title>genl_family: explicitly null terminate strncpy destination buffer</title>
<updated>2022-05-23T19:02:38Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-05-23T19:02:38Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libnl-tiny/commit/?id=28c44ca97cd546ef8168e7476472a0da022b3421'/>
<id>urn:sha1:28c44ca97cd546ef8168e7476472a0da022b3421</id>
<content type='text'>
The strncpy() function doesn't null terminate the destination string if
the source string is at least as long as the destination. (This behavior
is defined by the C99 specification.) As a result, the destination
string must be null terminated after calling strncpy().

And clang11 static analyzer thus reports following:

 genl_family.c:148:2: error: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Werror=stringop-truncation]
   148 |  strncpy(grp-&gt;name, name, GENL_NAMSIZ - 1);
       |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

References: https://gitlab.com/openwrt/project/libnl-tiny/-/jobs/2495301251#L197
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>refactor into separate Git project</title>
<updated>2019-10-04T14:02:05Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-10-04T13:47:25Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libnl-tiny/commit/?id=5b350e42d1fdf62908bfc099dd942ea8e21c64a5'/>
<id>urn:sha1:5b350e42d1fdf62908bfc099dd942ea8e21c64a5</id>
<content type='text'>
For improved reusability, testing etc.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
