Files only containing comments cannot be read
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
Files, which only contains comment lines, cannot be read by read, because it's throwing a substr error.
Analysis:
One line in the corresponding function performs string::pop_back() without checking the length of a file.
Implementation:
Fix was implemented as proposed by the analysis.
Documentation:
Not needed - Bug fix.
Tests:
No deviations detected. Fix implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff: