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]
Message-Id: <1174504455.13386.30.camel@kleikamp.austin.ibm.com>
Date:	Wed, 21 Mar 2007 14:14:15 -0500
From:	Dave Kleikamp <shaggy@...ux.vnet.ibm.com>
To:	Theodore Tso <tytso@....edu>
Cc:	"Brian D. Behlendorf" <behlendorf1@...l.gov>,
	linux-ext4@...r.kernel.org, adilger@...sterfs.com,
	wartens2@...l.gov
Subject: Re: e2fsprogs coverity patch <cid-11.diff>

On Wed, 2007-03-21 at 14:54 -0400, Theodore Tso wrote:
> On Fri, Feb 09, 2007 at 06:11:09PM -0800, Brian D. Behlendorf wrote:
> > Add an extra byte to EXT2_NAME_LEN in the static allocation for the
> > required trailing null.  This allows filenames up to the maximum
> > length of EXT2_NAME_LEN withover an overrun.
> > 
> > Coverity ID: 11: Overrun Static
> > 
> > -	thislen = ((dirent->name_len & 0xFF) < EXT2_NAME_LEN) ?
> > +	thislen = ((dirent->name_len & 0xFF) <= EXT2_NAME_LEN) ?
> >  		(dirent->name_len & 0xFF) : EXT2_NAME_LEN;
> 
> This change is largely meaningless/unnecessary, since if
> *dirent->name_len & 0xFF) is equal to EXT2_NAME_LEN it doesn't matter
> which path is chosen; was there a reason for the change.

#define EXT2_NAME_LEN 255

How about this?

	thislen = dirent->name_len & 0xFF;

-- 
David Kleikamp
IBM Linux Technology Center

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ