Powered by Linux
Re: [PATCH] check_do_while_loop_limit: implements checker for do_while loops — Semantic Matching Tool

Re: [PATCH] check_do_while_loop_limit: implements checker for do_while loops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 26, 2021 at 07:24:12PM +0530, Harshvardhan Jha wrote:
> do{} while(n--) loops end at n=-1 but programmers sometimes assume that
> they end at n=0. This checker sends a warning in these scenarios.
> 
> Signed-off-by: Harshvardhan Jha <harshvardhan.jha@xxxxxxxxxx>

Thanks a lot!  Applied.

regards,
dan carpenter




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux