Module Name: src Committed By: soda Date: Tue Mar 1 11:23:42 UTC 2011
Modified Files: src/lib/librefuse: refuse_opt.c Log Message: fuse_opt_parse() was using uninitialized struct fuse_opt_option::data, this bug made fuse_opt_proc_t not work, if it used first ``data'' argument, and might cause memory corruption even. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/lib/librefuse/refuse_opt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librefuse/refuse_opt.c diff -u src/lib/librefuse/refuse_opt.c:1.14 src/lib/librefuse/refuse_opt.c:1.15 --- src/lib/librefuse/refuse_opt.c:1.14 Mon Jan 19 09:56:06 2009 +++ src/lib/librefuse/refuse_opt.c Tue Mar 1 11:23:42 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: refuse_opt.c,v 1.14 2009/01/19 09:56:06 lukem Exp $ */ +/* $NetBSD: refuse_opt.c,v 1.15 2011/03/01 11:23:42 soda Exp $ */ /*- * Copyright (c) 2007 Juan Romero Pardines. @@ -282,6 +282,7 @@ if (!args || !args->argv || !args->argc || !proc) return 0; + foo.data = data; if (args->argc == 1) return proc(foo.data, *args->argv, FUSE_OPT_KEY_OPT, args);