aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/php.vim
diff options
context:
space:
mode:
authorFabian Viöl <f.vioel@googlemail.com>2021-04-29 10:36:34 +0200
committerFabian Viöl <f.vioel@googlemail.com>2021-04-29 11:48:51 +0200
commit766f4c3f62f530cf6c29272bae63a097681ab7fb (patch)
tree5d16f9c8ebacc6c11e22c9da3ab55cf4720f487e /runtime/syntax/php.vim
parentfbe18d9ca41a419414cb112d0a426aa8803c6236 (diff)
downloadrneovim-766f4c3f62f530cf6c29272bae63a097681ab7fb.tar.gz
rneovim-766f4c3f62f530cf6c29272bae63a097681ab7fb.tar.bz2
rneovim-766f4c3f62f530cf6c29272bae63a097681ab7fb.zip
get_str_line: Use heap instead of stack
The stack allocated buffer does introduce an arbitrary limit, to the length of the line. Previously, if the line was too long, it might be catched by a stack smash canary or resulted into a crash. This is not guaranteed though, and thus could result into undefined behavior. To mitigate this, an dynamic allocated buffer is replacing the stack allocated buffer, with the initial capacity of the copied line.
Diffstat (limited to 'runtime/syntax/php.vim')
0 files changed, 0 insertions, 0 deletions