From: nasm-bot f. C. G. <gor...@gm...> - 2018-10-13 14:21:15
|
Commit-ID: 8e740c677345540985eba92462f44e4b272a7652 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=8e740c677345540985eba92462f44e4b272a7652 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 13 Oct 2018 17:18:05 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sat, 13 Oct 2018 17:18:05 +0300 labels: Make sure nil label is never passed We already catched a case where we've missed test for non nil label and in result got sigsegv, lets rather panic next time. Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- asm/labels.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asm/labels.c b/asm/labels.c index aad473e..c00d6e5 100644 --- a/asm/labels.c +++ b/asm/labels.c @@ -219,6 +219,8 @@ static union label *find_label(const char *label, bool create, bool *created) char *label_str = NULL; struct hash_insert ip; + nasm_assert(label != NULL); + if (islocal(label)) label = label_str = nasm_strcat(prevlabel, label); |