test_validator_v41,.. had failed tests when run after Mac build issue fix.
They failed with invalid files where no version data was present in ##fileformat header.
It gives access violation as 'back' operation is made on empty string.
Fix is to check whether the string is empty before the operation.
A similar access violation was observed during further check where an iterator was accessed even when it is invalid.
Fix is to check validity of iterator before the access.
test_validator_v41,.. had failed tests when run after Mac build issue fix.
They failed with invalid files where no version data was present in ##fileformat header. It gives access violation as 'back' operation is made on empty string. Fix is to check whether the string is empty before the operation.
A similar access violation was observed during further check where an iterator was accessed even when it is invalid. Fix is to check validity of iterator before the access.