Checks to see if unsigned integers < 0

Aurélien Aptel aurelien.aptel at gmail.com
Sun Jul 14 03:16:45 MDT 2013


On Fri, Jul 12, 2013 at 8:36 PM, Herwin Weststrate
<herwin at snt.utwente.nl> wrote:
> A number of times some checks are run to see if an unsigned integer is
> smaller than zero. Of course this cannot be true, this patch removes these
> checks.

Samba devs might be interested in coccinelle [1] which lets you
automate the making of this kind of check/patch. It's a powerful tool
that was made with the Linux kernel in mind but I know it has been
used in other projects like in GNU Emacs.

1:
  website: http://coccinelle.lip6.fr/
  nice tutorial:
https://home.regit.org/technical-articles/coccinelle-for-the-newbie/


More information about the samba-technical mailing list