diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-29 14:23:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-29 21:24:07 +0100 |
commit | 6e4fc0508909af407e595d17b06a6b1d1cb36ba0 (patch) | |
tree | a8c943f954083f888294e639ae65882ebb59d897 /svx | |
parent | fb88fbbe2b6bb62c4525659299b05aa0964229c5 (diff) |
ofz#3889 Divide-by-zero
Change-Id: If02a4bd6d168e9b1d4574cfc730ecc24011eab62
Reviewed-on: https://gerrit.libreoffice.org/44023
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx index 9adb80e53c8d..9572e7ac491e 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx @@ -462,6 +462,10 @@ public: mpSecondArg( rSecondArg ) { } +#if defined(__clang__) || (defined (__GNUC__) && __GNUC__ >= 8) + //GetEquationValueAsDouble calls isFinite on the result + __attribute__((no_sanitize("float-divide-by-zero"))) +#endif static double getValue( const ExpressionFunct eFunct, const std::shared_ptr<ExpressionNode>& rFirstArg, const std::shared_ptr<ExpressionNode>& rSecondArg ) { double fRet = 0; |