lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 1 Oct 2023 09:50:20 +0200
From: Christophe JAILLET <>
To: Julia Lawall <>, Kees Cook <>
Cc: Ian Abbott <>,
 H Hartley Sweeten <>,
 "Gustavo A. R. Silva" <>,
 Nathan Chancellor <>,
 Nick Desaulniers <>, Tom Rix <>,,,,
Subject: Re: [PATCH] comedi: Annotate struct comedi_lrange with __counted_by

Le 01/10/2023 à 09:25, Julia Lawall a écrit :
> This is not found due to the regular expression used for the name of the
> alloc function.  Maybe you could drop it entirely?  Maybe you could just
> check for alloc somewhere in the string?

That's how I found it.
I simplified a lot Kees's script and looked for function names that did 
*not* match his regex.

Functions that:
    - return a pointer to a struct
    - are used with struct_size()
    - store the value used to compite the size in another field of the 

are good enough candidates.
I think that removing the regex all together would be just good enough.


> identifier ALLOC =~ "alloc";
> works in this case.
> Also, I see in the link that you have:
> // Options: --all-includes
> You can actually force this by putting
> #spatch --all-includes

Nice, thanks for the tip.

> and any other options you want.
> julia

Powered by blists - more mailing lists