Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[hail][bugfix]: fix out of bounds read in LoadVCF #7182
When reading flag fields, we attempt to check if `line(pos) == '='`. When a flag occurs at end of line, pos will be equal to line.length, and thus caused an out of bounds read on the string. Added the bounds check to prevent this.
I have confirmed that the test I added fails with the same error laurent saw in the linked conversation, and passes with the change.