diff options
author | Joey Hess <joey@kitenet.net> | 2013-07-10 16:21:36 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-07-10 16:21:36 -0400 |
commit | 8ba4087b31aef2225681da0f011002f8053be61c (patch) | |
tree | f848393280d17bcedcae21a19a08f78799b210f9 | |
parent | c18babad60373c4aada08074a0de62c0e44a80d9 (diff) | |
download | moreutils-8ba4087b31aef2225681da0f011002f8053be61c.tar.gz |
errno, isutf8: Fix zero-termination of option list, which could lead to getopt crash. Closes: #715867 (Thanks, Mayhem Team)
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | errno.c | 1 | ||||
-rw-r--r-- | isutf8.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index ccf3c16..96ba19a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ moreutils (0.49) UNRELEASED; urgency=low * ts: Fix timezone used with -i + * errno, isutf8: Fix zero-termination of option list, which could lead + to getopt crash. Closes: #715867 + (Thanks, Mayhem Team) -- Joey Hess <joeyh@debian.org> Sun, 05 May 2013 11:20:57 -0400 @@ -133,6 +133,7 @@ options[] = { { "list", 0, NULL, 'l' }, { "search", 0, NULL, 's' }, { "search-all-locales", 0, NULL, 'S' }, + { 0, 0, 0, 0 } }; @@ -227,6 +227,7 @@ int main(int argc, char **argv) { struct option options[] = { { "help", no_argument, NULL, 'h' }, { "quiet", no_argument, &quiet, 1 }, + { 0, 0, 0, 0 } }; int opt; |