[PATCH 1/2] cgit: introduce parse_{bool, int}() for for cgitrc parsing

Christian Hesse list at eworm.de
Mon Jan 7 21:54:50 CET 2019


Christian Hesse <list at eworm.de> on Mon, 2019/01/07 16:35:
> From: Christian Hesse <mail at eworm.de>
> 
> We used to have atoi() only for parsing of numeric and boolean (numeric
> evaluating true or false) values. Let's introduce parse_{bool,int}()
> for minimal sanitization.

Please give this a good review to make sure I did not mess up. :-p
-- 
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/20190107/43fb1cb0/attachment-0001.asc>


More information about the CGit mailing list