[gnumeric] Parser: fix ABR.



commit 752fecd5edf7a683b2e9390eec3daf646da04c2d
Author: Morten Welinder <terra gnome org>
Date:   Thu Dec 12 16:43:40 2013 -0500

    Parser: fix ABR.

 ChangeLog    |    5 +++++
 NEWS         |    1 +
 src/parser.y |    2 ++
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 782cf05..f0bb864 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-12  Morten Welinder  <terra gnome org>
+
+       * src/parser.y (array_row): Avoid overrunning string when multiple
+       missing closing parentheses are detected.  Fixes #720353.
+
 2013-12-11  Morten Welinder  <terra gnome org>
 
        * src/gui-util.c (gnumeric_popup_menu): Use the screen from
diff --git a/NEWS b/NEWS
index 4d6f4ca..e0c0444 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Morten:
        * New functions: IMGAMMA, IMFACT.
        * Avoid some overflows in IMGAMMA.
        * Fix tabulation truncation issue.
+       * Fix ABR.  [#720353]
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.9
diff --git a/src/parser.y b/src/parser.y
index 4254a4e..a042b58 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -913,6 +913,8 @@ find_matching_close (char const *str, char const **res)
                                *res = tmp;
                                return str;
                        }
+                       if (*str == 0)
+                               return str;
                } else if (*str == ')')
                        return str;
                else if (*str == '\'' || *str == '\"') {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]