We will be at OWASP APPSEC EUROPE 2017 - Belfast! Let’s talk!MORE INFO

Help Center

Get to know more about our API, Code Annotations and Code Transformations

Comma Operator Unfolding

Potency
1 / 3
Resilience
0 / 5
Cost
0 / 5

Tags: comma,operator,unfolding,statements,obfuscation

Description

The comma operator evaluates their operands (expressions), from left to right,
and returns the value of the last expression. It is commonly used when we want
to include multiple expressions in a single expression.

Comma Operator Unfolding transforms each operand of a comma operator to
an individual expression resulting in multiple contiguous expressions keeping
the same execution order as the original form.

Example

Consider the following comma operator example:

1
(foo = 1, bar = 2, baz = 3);

After transformation the result will look like this:

1
2
3
foo = 1;
bar = 2;
baz = 3;

API Parameters

Example:

1
2
3
4
5
6
7
8
9
10
11
12
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "commaOperatorUnfolding"
}
]
}