aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/filetype.lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-03-12 00:03:52 +0100
committerMarc André Tanner <mat@brain-dump.org>2018-03-12 00:21:45 +0100
commit1c4e0940938373580cf1e3d2184bae8f25259b79 (patch)
tree91689b8ee6785160c0631cbdaafebe7a581d884e /lua/plugins/filetype.lua
parentae6c3801292c0279a6263ce2b363d0719a0737da (diff)
downloadvis-1c4e0940938373580cf1e3d2184bae8f25259b79.tar.gz
vis-1c4e0940938373580cf1e3d2184bae8f25259b79.tar.xz
view: fix buffer overflow when dealing with combining characters
The `cell.len` attribute refers to the number of bytes of the underlying text which are represented by this cell. The actual NUL terminated data being displayed can have a completely unrelated length. For example a NUL byte has a `cell.len` of 1, but is displayed as `cell.data = "^@"`. Because we currently have a fixed cell capacity of 16 bytes (including the terminating NUL byte) long sequences of combining characters won't be displayed correctly. See also #679
Diffstat (limited to 'lua/plugins/filetype.lua')
0 files changed, 0 insertions, 0 deletions