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

Christian Hesse list at eworm.de
Mon Jul 16 16:41:15 CEST 2018

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?
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/20180716/37fb0309/attachment.asc>

More information about the CGit mailing list