We could either error out or convert them to whitespace; this
implements the error option.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
free_tlist(origline);
return DIRECTIVE_FOUND;
- case PP_DEFTOK:
- case PP_IDEFTOK:
+ case PP_DEFTOK:
+ case PP_IDEFTOK:
+ {
+ size_t len;
+
casesense = (i == PP_DEFTOK);
tline = tline->next;
return DIRECTIVE_FOUND;
}
- nasm_unquote(t->text, NULL);
- macro_start = tokenize(t->text);
+ len = nasm_unquote(t->text, NULL);
+ if (memchr(t->text, '\0', len))
+ error(ERR_NONFATAL, "NUL character in `%s' directive",
+ pp_directives[i]);
+ macro_start = tokenize(t->text);
/*
* We now have a macro name, an implicit parameter count of
free_tlist(tline);
free_tlist(origline);
return DIRECTIVE_FOUND;
+ }
case PP_PATHSEARCH:
{