nasl icon indicating copy to clipboard operation
nasl copied to clipboard

pre-increment and pre-decrement issue

Open dailei2018 opened this issue 7 years ago • 1 comments

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>

dailei2018 avatar Oct 19 '18 01:10 dailei2018

Hi @dailei2018, thanks for the report. We will try to address this in the future. Leaving the issue open until it's fixed.

alexwebr avatar Oct 19 '18 19:10 alexwebr