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
| ||
|
Date: Thu, 8 Nov 2012 15:51:42 +0000 From: KY Srinivasan <kys@...rosoft.com> To: Tomas Hozza <thozza@...hat.com>, Olaf Hering <olaf@...fle.de> CC: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "devel@...uxdriverproject.org" <devel@...uxdriverproject.org>, "apw@...onical.com" <apw@...onical.com>, "jasowang@...hat.com" <jasowang@...hat.com> Subject: RE: [PATCH] Tools: hv: Fix for long file names from readdir > -----Original Message----- > From: Tomas Hozza [mailto:thozza@...hat.com] > Sent: Thursday, November 08, 2012 9:53 AM > To: Olaf Hering > Cc: gregkh@...uxfoundation.org; linux-kernel@...r.kernel.org; > devel@...uxdriverproject.org; apw@...onical.com; jasowang@...hat.com; KY > Srinivasan > Subject: Re: [PATCH] Tools: hv: Fix for long file names from readdir > > > > - char dev_id[256]; > > > + char dev_id[512]; > > > > Shouldnt that be PATH_MAX or similar? > > dirent->d_name should be PATH_MAX, but it is mostly > not guaranteed. And then the dev_id is concatenated > with two strings so it can exceed 256 bytes. PATH_MAX (currently 4096 bytes) I think should suffice. Regards, K. Y
Powered by blists - more mailing lists