Fix potential out of bounds read.

Review Request #128153 - Created June 11, 2016 and submitted

Information
Martin Tobias Holmedahl Sandsmark
konsole
Reviewers
konsole

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.

Tested running with the unlimited scrollback and various amounts of printing and scrolling to try to trigger both the mmaped and unmmaped cases.

Kurt Hindenburg
Martin Tobias Holmedahl Sandsmark
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit c026b0e4b153d948d0d25856a94498d7946ccfbf by Martin T. H. Sandsmark to branch master.
Loading...