<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/scripts/coccinelle/misc/array_end.cocci, branch stable</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/scripts/coccinelle/misc/array_end.cocci?h=stable</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/scripts/coccinelle/misc/array_end.cocci?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2026-11-01T22:43:36Z</updated>
<entry>
<title>scripts/coccinelle: improve efficiency of array_end.cocci</title>
<updated>2026-11-01T22:43:36Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@inria.fr</email>
</author>
<published>2026-09-27T09:16:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=14be5faa8be7cebb559c91a41d48545c0b1faa16'/>
<id>urn:sha1:14be5faa8be7cebb559c91a41d48545c0b1faa16</id>
<content type='text'>
* Add disable zero_multiple_format to each rule to avoid considering
the possibility that an array index is expressed using '\0'
* Omit outer parentheses on context and org/report rules that
only match ubt don't transform, since matching a subterm gives
the same result whether or not the parentheses are present.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@inria.fr&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle: Add script for using ARRAY_END()</title>
<updated>2026-11-01T22:43:35Z</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@kernel.org</email>
</author>
<published>2026-09-22T19:34:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=6b828a87a63a29bc6b4a597e3a920e2b19c8274e'/>
<id>urn:sha1:6b828a87a63a29bc6b4a597e3a920e2b19c8274e</id>
<content type='text'>
Recently, we added an ARRAY_END() macro to simplify finding a pointer
one past the last element in an array.  Such a pointer is often called
the 'end', and thus the macro name.

Make it easy to find more places where that macro should be used.

See also:
436debc9cad8 ("array_size.h: add ARRAY_END()")
8118f197b7b7 ("mm: fix benign off-by-one bugs")
a9e5620c9a9e ("kernel: fix off-by-one benign bugs")
61e9210e2392 ("mm: use ARRAY_END() instead of open-coding it")

Cc: Kees Cook &lt;kees@kernel.org&gt;
Cc: Markus Elfring &lt;Markus.Elfring@web.de&gt;
Cc: Julia Lawall &lt;Julia.Lawall@inria.fr&gt;
Cc: Nicolas Palix &lt;nicolas.palix@imag.fr&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
Signed-off-by: Julia Lawall &lt;Julia.Lawall@inria.fr&gt;
</content>
</entry>
</feed>
