EBIvariation / vcf-validator

Validation suite for Variant Call Format (VCF) files, implemented using C++11
Apache License 2.0
129 stars 39 forks source link

Test failure #231

Closed vasudeva8 closed 5 months ago

vasudeva8 commented 6 months ago

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.