From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Mon, 7 Jan 2019 21:54:50 +0100 Subject: [PATCH 1/2] cgit: introduce parse_{bool, int}() for for cgitrc parsing In-Reply-To: <20190107153535.21620-1-list@eworm.de> References: <20190107163449.51f869a5@leda> <20190107153535.21620-1-list@eworm.de> Message-ID: <20190107215450.497c82e2@leda> Christian Hesse on Mon, 2019/01/07 16:35: > From: Christian Hesse > > 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: