libCom: Fix buggy pointer dereference in postfix()

This commit is contained in:
Jeremy Lorelli
2023-07-18 16:24:37 -07:00
committed by Dirk Zimoch
parent e291ca0a03
commit 67e669c5e5
2 changed files with 11 additions and 1 deletions

View File

@@ -298,7 +298,7 @@ MAIN(epicsCalcTest)
const double a=1.0, b=2.0, c=3.0, d=4.0, e=5.0, f=6.0,
g=7.0, h=8.0, i=9.0, j=10.0, k=11.0, l=12.0;
testPlan(/*635*/633);
testPlan(637-2);
/* LITERAL_OPERAND elements */
testExpr(0);
@@ -953,6 +953,8 @@ MAIN(epicsCalcTest)
// testBadExpr("1?", CALC_ERR_CONDITIONAL);
// testBadExpr("1?1", CALC_ERR_CONDITIONAL);
testBadExpr(":1", CALC_ERR_SYNTAX);
testBadExpr("0,", CALC_ERR_BAD_SEPERATOR);
testBadExpr("0)", CALC_ERR_PAREN_NOT_OPEN);
// Bit manipulations wrt bit 31 (bug lp:1514520)
// using integer literals