diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-09-06 19:36:15 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-09-06 19:44:51 +0400 |
commit | e12c50d274198fdc6a60429a193eef95be391173 (patch) | |
tree | 7a2a0485ef7278e2338f7360d770c1be527ba826 | |
parent | 2d3dce2fd7f0f8547f71a88aaecf0c12565162b1 (diff) | |
download | nasm-e12c50d274198fdc6a60429a193eef95be391173.tar.gz |
BR3060469: Fix SIGSEV on missed %deftok second parameter
In case if a second parameter of %deftok is missed we hit
NULL dereference. Fix it.
Reported-by: Christian Masloch
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | preproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3177,7 +3177,7 @@ issue_error: while (tok_type_(t, TOK_WHITESPACE)) t = t->next; /* t should now point to the string */ - if (t->type != TOK_STRING) { + if (!tok_type_(t, TOK_STRING)) { error(ERR_NONFATAL, "`%s` requires string as second parameter", pp_directives[i]); |