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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160723131220.GA26279@p183.telecom.by>
Date:	Sat, 23 Jul 2016 16:12:20 +0300
From:	Alexey Dobriyan <adobriyan@...il.com>
To:	james.smart@...adcom.com
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] add u64 number parser

> +	ret = kstrtoull(buf, base, &val);
> +	if (!ret)
> +		*result = val;

Simply pass "result" directly to kstrtoull(). It will not write the result
in case of error.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ