nasl
nasl copied to clipboard
pre-increment and pre-decrement issue
nasl script `if(++a){}
if(--a){}`
xml output
<tree> <if> <increment> <type>pre</type> </increment> <block> </block> </if> <if> <decrement> <type>pre</type> </decrement> <block> </block> </if> </tree>
the correct piece of xml output may look like
<decrement> <lvalue> <identifier name="a"/> </lvalue> <type>pre</type> </decrement>
Hi @dailei2018, thanks for the report. We will try to address this in the future. Leaving the issue open until it's fixed.