nasmlib.c: Make nasm_opt_val robust
commit370e5a94c96e7d1198601352949548df27c858f1
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 11 Apr 2010 09:00:58 +0000 (11 13:00 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 11 Apr 2010 09:00:58 +0000 (11 13:00 +0400)
tree43241bf86b5698b7e0b206d7d2b8ce8df67c728d
parent6702d93c10c003cf9472d33a67185db0a5a8c593
nasmlib.c: Make nasm_opt_val robust

nasm_opt_val should be able handle various text stream
passed, including tainted ones. Make it so.

Also it fixes the case when Elf section has multiple
attributes such as "progbits align=16" and friends
(introduced by commit bb0745f). The former just ignore
any other options/values except first one.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
nasmlib.c