[PATCH 1/1] cgitrc: handle value "0" for max-repo-count

Christian Hesse list at eworm.de
Tue Sep 11 08:56:46 CEST 2018


Christian Hesse <list at eworm.de> on Mon, 2018/07/16 16:41:
> Christian Hesse <list at eworm.de> on Mon, 2018/07/16 16:38:
> > From: Christian Hesse <mail at eworm.de>
> > 
> > Setting max-repo-count to "0" makes cgit loop forever generating page
> > links. Make this a special value to show all repositories.  
> 
> We do parse a lot of values with atoi(value). Is it worth sanitizing all
> of them?

Any feedback on the patch and sanitizing in general?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20180911/4ca27073/attachment-0001.asc>


More information about the CGit mailing list