Package: util-linux
Version: 2.17.2-9
Severity: normal
Tags: patch

unshare utility from util-linux segfaults when given an invalid
or incomplete (abbreviated) long option.  This is because the
option array in sys-utils/unshare.c:main() is not NULL-terminated.

The attached patch fixes the issue, which has been fixed upstream
too.

Thanks!

/mjt

--- a/sys-utils/unshare.c       2010-03-19 01:11:23.000000000 +0300
+++ b/sys-utils/unshare.c       2011-02-26 19:10:48.276153002 +0300
@@ -77,4 +77,5 @@ int main(int argc, char *argv[])
                { "ipc", no_argument, 0, 'i' },
                { "net", no_argument, 0, 'n' },
+               { NULL, 0, 0, 0 },
        };
 



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to