• Martin Tobias Holmedahl Sandsmark's avatar
    Fix potential out of bounds read. · c026b0e4
    Martin Tobias Holmedahl Sandsmark authored
    The check was only done when not memory mapped, so there was a potential
    out of bounds read. In addition the check only printed an error, and
    didn't return and went ahead with the erronous read.
    The 'loc' variable is indirectly read from the file, so in case the
    history file is corrupted this could potentially lead to a crash.
    Found by Coverity.
    REVIEW: 128153
To find the state of this project's repository at the time of any of these versions, check out the tags.