Icon View Incident Report

Serious Serious
Reported By: Erick Engelke
Reported On: 9/8/2022
For: Version 3.02 Build 7
# 4904 Invalid Hex Constants are Not Caught by the Compiler and Can Result in an Access Violation

In getting back in the swing of things, I was porting some PHP code to EWB 3.02 build 7 and keep getting compiler errors that don't tell me what the pascal problem is, not even the right source file. So I figured I should report it.

I don't expect my code to compile perfectly yet, but I do want better warnings and not to get hard compiler errors like:
[Error] testpoly.wbp (3,22): Access violation at address 00407A24 in module 'ewbide.exe'. Read of address 5E084385

    setlength( isDone , numCoefficients ) ; //. = array();
    for column := 0  to rows -1 do
      isDone[ $column ] = false;



Comments Comments
The issue was with the hex constant parsing - the set of valid characters was being defined as all alpha-numeric characters instead of just 'A'-'F', 'a'-'f', and '0'-'9'.


Resolution Resolution
Fixed Problem on 9/16/2022 in version 3.02 build 8


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image