Having a blank line in the file passed to the -T option will cause
an entry in the argv array to be NULL. To avoid invoking undefined
behavior, we take care not to pass these NULL values to strcmp.
+tar (1.22-3) UNRELEASED; urgency=low
+
+ * Avoid undefined behavior of passing NULL to strcmp, closes: #411485
+ Thanks to Raúl Sánchez Siles for proposing this patch.
+
+ -- Carl Worth <cworth@cworth.org> Tue, 04 Aug 2009 17:15:20 -0700
+
tar (1.22-2) unstable; urgency=low
* Add Carl Worth as an uploader.
then exchange with previous non-options as if it were an option,
then skip everything else like a non-option. */
- if (d->optind != argc && !strcmp (argv[d->optind], "--"))
+ if (d->optind != argc && argv[d->optind] && !strcmp (argv[d->optind], "--"))
{
d->optind++;