Menu

#87 detoken() in preproc.c forgets to change %! token type

open-works-for-me
nobody
None
1
2004-02-15
2003-05-03
Anonymous
No

As a "side job" the detoken() function in preproc.c
is responsible for expanding %!<variable> into the
value of the specified environment variable.

However, the function forgets to change the type of
the token (from TOK_PREPROC_ID) to TOK_OTHER, when
it performs the aforementioned %! expansion.

This can cause a core dump when the "emit expanded
multi-line macro arguments into list files" patch is
applied -- see SourceForge #644619 for details.

The solution is to add "t->type = TOK_OTHER;" inside
the IF statement that handles %! in detoken().

Discussion

  • Nobody/Anonymous

    Logged In: NO

    should be fixed together with #731855

     
  • nasm64developer

    nasm64developer - 2004-02-15
    • priority: 5 --> 1
    • status: open --> open-works-for-me
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.