assemble: Check global line limit
commitf0ceb1e122dc3523123dd8dfd6113f2e68451452
authorChang S. Bae <chang.seok.bae@intel.com>
Wed, 2 May 2018 15:07:53 +0000 (2 08:07 -0700)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sat, 5 May 2018 20:44:33 +0000 (5 23:44 +0300)
tree0bed0ca2c822decd2d8147cb196e30c76f901296
parent427d8e3e57b68370daa143c3e501df9c23e9869f
assemble: Check global line limit

Without the limit, the while loop opens to semi-infinite
that will exhaustively consume the heap space. Also, the
index value gets into the garbage.

https://bugzilla.nasm.us/show_bug.cgi?id=3392474

Reported-by : Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
asm/nasm.c