diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-11-06 12:33:38 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-11-10 02:47:19 +0100 |
commit | de6618a2713ef26f888762cbe6539cc65a393c7c (patch) | |
tree | 82d4a6ff2c9292568beb0925d4e6f98de1f4d5f6 /apps/plugins/lua | |
parent | fa8760705c3685a31a119c58b348364410433952 (diff) |
Fix vuprintf fix possible %s buffer over-read
when precision is not specified memchr recieved -1 for count
count is unsigned so it looks in a potentially very large area
for a terminator and returns this whole area if \0 is not found
Instead we should use memchr when precision is specified
and if precision is not specified use strlen
Fixes 60+Mb Config.cfg files
Change-Id: Ic4d1439334588f999c9071235430c42df2af5cc4
Diffstat (limited to 'apps/plugins/lua')
0 files changed, 0 insertions, 0 deletions