Closed gy741 closed 6 years ago
@gy741 Thanks for the report! This one is particularly interesting because xxd seems to decode the third-from-last character as a dot ('.') instead of a tab:
$ xxd bug.nwt
00000000: 7072 696e 7428 2121 2d2d 2d2d 2d2d 3125 print(!!------1%
00000010: 2121 212d 2821 323e 2d2d 2d2d 2d2d 3125 !!!-(!2>------1%
00000020: 2121 2121 0935 2929 !!!!.5))
$ cat bug.nwt
print(!!------1%!!!-(!2>------1%!!!! 5))
I think the behavior of cat
is correct in this case. Either way, the heap overflow needs to be resolved.
Hello.
I found a heap-buffer-overflow in newt.
Please confirm.
Thanks.
Summary: heap-buffer-overflow OS: CentOS 7 64bit Version: d3bcd7f187e0f318ec606d936297b0e06e8aac47 PoC Download: OV_UnaryExpression__Evaluate.zip
Steps to reproduce: 1.Download the .POC files. 2.Compile the source code with ASan. 3.Execute the following command : ./newt $FILE
========== [Acknowledgement] This work was supported by ICT R&D program of MSIP/IITP. [R7518-16-1001, Innovation hub for high Performance Computing]