commit | 04ce2ea7a2930b32655823d55a8ff9865a37d6c2 | [log] [tgz] |
---|---|---|
author | Kevin Robert Stravers <macocio@gmail.com> | Tue Sep 24 13:24:02 2019 +0200 |
committer | Kevin Robert Stravers <macocio@gmail.com> | Sun Sep 29 00:15:09 2019 +0200 |
tree | 8ba0ad23e09c9bc9bf22e0c1641c819cd13d25e1 | |
parent | 21bd971ea9381e6c36d3a3be17a501899922ff73 [diff] |
Ensure substring indexing never goes negative With widths lower than 4, the ElideMiddle function would crash because its substring access would wrap around and attempt to access the max size_t value. This patch fixes that.