Fix buffer overrun in PDF accessibility code.

GetTextRunInfo scans until it finds the start of the next text run,
then increments the character index by 1 in order to scan to the end of
the text run. That was resulting in a buffer ovverun if the first scan
reached the end of the array of characters without finding a non-whitespace
character. Fix it by ensuring we never increment past the char count.


Cr-Commit-Position: refs/heads/master@{#447344}
2 files changed