From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Sun, 10 Feb 2019 14:08:18 +0100 Subject: [PATCH 1/2] ui-ssdiff: ban strncat() In-Reply-To: References: <20190207105358.GA8156@john.keeping.me.uk> <20190208214812.26937-1-list@eworm.de> Message-ID: <20190210140818.31f5459c@leda> "Jason A. Donenfeld" on Sat, 2019/02/09 12:31: > You sure those statements are the same? Snprintf doesn't append like > strncat. Wouldn't strlcat be the more apt replacement? We have an unconditional result[0] = '\0'; that mad be think it is safe. But we are inside a loop, so probably not... :-p Let me have another look. -- 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: