IntelLabs/control-flag

[BUG] Line numbers of potential anomaly are incorrect

jilgiewi opened this issue · 0 comments

Line numbers that are printed out in a log file, for potential anomalies, are incorrect.

For example output from log:

/var/jenkins_slave/workspace/Preboot/control-flag/thread_1.log-[TID=140515822532352] Scanning File: /var/jenkins_slave/workspace/Preboot/control-flag/sandbox/IntelUndiPkg/IceUndiFullDxe/Ice.c
/var/jenkins_slave/workspace/Preboot/control-flag/thread_1.log-Level:ONE Expression:(parenthesized_expression (binary_expression ("=") (identifier)(identifier))) found in training dataset: Source file: /var/jenkins_slave/workspace/Preboot/control-flag/sandbox/IntelUndiPkg/IceUndiFullDxe/Ice.c:84:5:(Status = EFI_NOT_FOUND)
/var/jenkins_slave/workspace/Preboot/control-flag/thread_1.log:Expression is Potential anomaly

From log here line number is 84. In fact it should be 85.

See: https://github.com/intel-sandbox/epg.nd_preboot.uefi_undi_cpk/pull/47/files