lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <ZvqdaLAVbUF0i1Zi@smile.fi.intel.com> Date: Mon, 30 Sep 2024 15:45:28 +0300 From: Andy Shevchenko <andy@...nel.org> To: Christian Marangi <ansuelsmth@...il.com> Cc: Jens Axboe <axboe@...nel.dk>, Jonathan Corbet <corbet@....net>, Ulf Hansson <ulf.hansson@...aro.org>, Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, Kees Cook <kees@...nel.org>, Daniel Golle <daniel@...rotopia.org>, INAGAKI Hiroshi <musashino.open@...il.com>, Christian Brauner <brauner@...nel.org>, Al Viro <viro@...iv.linux.org.uk>, Li Lingfeng <lilingfeng3@...wei.com>, Ming Lei <ming.lei@...hat.com>, Christian Heusel <christian@...sel.eu>, linux-block@...r.kernel.org, linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org, linux-mmc@...r.kernel.org, devicetree@...r.kernel.org, linux-hardening@...r.kernel.org, Miquel Raynal <miquel.raynal@...tlin.com>, Lorenzo Bianconi <lorenzo@...nel.org>, upstream@...oha.com, Rasmus Villemoes <linux@...musvillemoes.dk> Subject: Re: [PATCH v4 3/5] string: add strends() helper to check if a string ends with a suffix On Mon, Sep 30, 2024 at 01:30:10PM +0200, Christian Marangi wrote: > Add strends() helper to check if a string ends with a suffix. The > unreadable strends is chosen to keep consistency with the parallel > strstarts helper used to check if a string starts with a prefix. strstarts() > To prevent out-of-bounds read, len of string is checked against the > prefix length before comparing the 2 string at the offset. ... > +/** > + * strends - does @str end with @suffix? > + * @str: string to examine > + * @suffix: suffix to look for. Please, run kernel doc validator scripts/kernel-doc -Wall -none ... and fix the warning. > + */ -- With Best Regards, Andy Shevchenko
Powered by blists - more mailing lists