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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 24 May 2010 12:57:37 +0100
From:	Alasdair G Kergon <agk@...hat.com>
To:	Will Drewry <wad@...omium.org>
Cc:	dm-devel@...hat.com, linux-kernel@...r.kernel.org,
	snitzer@...hat.com
Subject: Re: [dm-devel] [PATCH v3 3/3] dm: lookup devices by path with
	name_to_dev_t

On Wed, May 19, 2010 at 01:38:24PM -0500, Will Drewry wrote:
> +	char base_path[32];  /* size from name_to_dev_t */
  
> +	/* stage the shorter path for name_to_dev_t. */
> +	strncpy(base_path, path, sizeof(base_path));

I'm dropping that, and just passing path directly, so the strlen test
will be used.  (There's a "name += 5" in there so 32 would ignore
any longer standard names anyway.)

Alasdair

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ