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-next>] [day] [month] [year] [list]
Date:	Thu, 30 Aug 2007 22:42:33 +0800
From:	"Wang Chen" <ellre923@...il.com>
To:	"linux-ext4" <linux-ext4@...r.kernel.org>
Cc:	"Wang Chen" <wangchen@...fujitsu.com>
Subject: [PATCH] ext3: Fix not initialized hash info in ext3_dx_find_entry()

- In fs/ext3/namei.c, Variable "hinfo" may be referenced before it has
been set with a value.

Signed-off-by: Wang Chen <wangchen@...fujitsu.com>
---

diff -Nurp linux-2.6.22.4.org/fs/ext3/namei.c linux-2.6.22.4/fs/ext3/namei.c
--- linux-2.6.22.4.org/fs/ext3/namei.c  2007-08-22 15:33:40.000000000 +0800
+++ linux-2.6.22.4/fs/ext3/namei.c      2007-08-28 17:47:44.000000000 +0800
@@ -952,6 +952,12 @@ static struct buffer_head * ext3_dx_find
                frame->bh = NULL;                       /* for dx_release() */
                frame->at = (struct dx_entry *)frames;  /* hack for zero entry*/
                dx_set_block(frame->at, 0);             /* dx_root block is 0 */
+               if (dentry){
+                       ext3fs_dirhash(dentry->d_name.name, dentry->d_name.len,
+                                      &hinfo);
+               } else {
+                       return NULL;
+               }
        }
        hash = hinfo.hash;
        do {

--
Wang Chen 

-
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