mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-22 01:20:43 +00:00
Reject pax options starting with equals sign
Bug reported in http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00010.html * xheader.c (xheader_set_keyword_equal): Bail out if the keyword starts with =
This commit is contained in:
@@ -185,6 +185,9 @@ xheader_set_keyword_equal (char *kw, char *eq)
|
||||
bool global = true;
|
||||
char *p = eq;
|
||||
|
||||
if (eq == kw)
|
||||
USAGE_ERROR ((0, 0, _("Malformed pax option: %s"), quote (kw)));
|
||||
|
||||
if (eq[-1] == ':')
|
||||
{
|
||||
p--;
|
||||
|
||||
Reference in New Issue
Block a user