Dear Karel, On 10 Dec 2009, at 11:20, Karel Zak wrote: > On Wed, Dec 09, 2009 at 10:08:38PM +0000, Jochen Voss wrote: >> while experimenting with coccinelle, I accidentially found what I > > Good work, thanks! Can you share your spatches? For example memset() > bugs are pretty common. It'd be nice to have somewhere on internet > a collection of spatches for generic bugs. It was my first ever experiment with spatches, so there is only one: @@ type T; T *x; expression E; @@ memset(x, E, sizeof( + * x)) This was taken from a post by Julia Lawall to the linux-kernel mailing list. > I have applied the patch below. Excellent! All the best, Jochen -- http://seehuhn.de/ -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html