<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2016-01-12T16:47:47Z</updated>
<entry>
<title>coccinelle: tests: unsigned value cannot be lesser than zero</title>
<updated>2016-01-12T16:47:47Z</updated>
<author>
<name>Andrzej Hajda</name>
<email>a.hajda@samsung.com</email>
</author>
<published>2016-01-07T09:36:51Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=3f984cb39907f87515d83657ecd471ae396a6c4a'/>
<id>urn:sha1:3f984cb39907f87515d83657ecd471ae396a6c4a</id>
<content type='text'>
Unsigned expressions cannot be lesser than zero. Presence of comparisons
'unsigned (&lt;|&lt;=|&gt;|&gt;=) 0' often indicates a bug, usually wrong type of variable.
The patch beside finding such comparisons tries to eliminate false positives,
mainly by bypassing range checks.

gcc can detect such comparisons also using -Wtype-limits switch, but it warns
also in correct cases, making too much noise.

Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
</feed>
