oss-fuzz: fixed inner assignment

This commit is contained in:
Daniel Marjamäki 2019-11-02 08:00:24 +01:00
parent 0b97f37736
commit 42432982ea
1 changed files with 5 additions and 1 deletions

View File

@ -69,7 +69,11 @@ static std::string generateExpression2_Expr(const uint8_t *data, size_t dataSize
generateExpression2_Expr(data, dataSize, numberOfGlobalConstants, depth);
const std::string rhs = generateExpression2_Expr(data, dataSize, numberOfGlobalConstants, depth);
return lhs + op + rhs;
std::string ret = lhs + op + rhs;
if (depth > 1 && op == '=')
ret = "(" + ret + ")";
return ret;
}
case 2: {
const char *u = unop[getValue(data,dataSize,sizeof(unop)/sizeof(*unop))];