summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2018-07-27 16:59:02 +0200
committerLuboš Luňák <l.lunak@collabora.com>2018-07-31 16:01:05 +0200
commit58a15b452801f1f6f1b3e9f2fef49a1249538ac5 (patch)
treeb2ccc84459fae4b754c359f826f34063361555e5 /include
parent3c15daa2a11d675a37b2d75a3f9952cfd60b3e98 (diff)
protect against accessing before the start of pCode in FormulaCompiler
If the expression is bad, such as in sc/qa/.../sheet.fods, 'pCode - 1' may actually refer before the array of tokens, since nothing has been added yet. So make that element nullptr. This is a bit hackish, but checking in every place that pCode is valid seems tedious. Change-Id: Ia099a50583f60d93a2e20b1f7b5e44b0121a275b Reviewed-on: https://gerrit.libreoffice.org/58198 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions