Changeset e60254e in git


Ignore:
Timestamp:
14/09/11 02:58:10 (8 years ago)
Author:
Olly Betts <olly@…>
Branches:
add-show-splays, line_contents, master, stereo, svn/github/master, svn/origin/master, svn/tags/1.2.0, svn/tags/1.2.1, svn/tags/1.2.2, svn/tags/1.2.3, svn/tags/1.2.4, svn/tags/1.2.5, svn/trunk, travis-osx
Children:
0ed1981
Parents:
17de0e2
Message:

src/mainfrm.cc: Fix another potential read beyond the end of a
string.

git-svn-id: file:///home/survex-svn/survex/trunk@3628 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r17de0e2 re60254e  
     1Wed Sep 14 01:57:45 GMT 2011  Olly Betts <olly@survex.com>
     2
     3        * src/mainfrm.cc: Fix another potential read beyond the end of a
     4          string.
     5
    16Wed Sep 14 01:35:20 GMT 2011  Olly Betts <olly@survex.com>
    27
  • src/mainfrm.cc

    r17de0e2 re60254e  
    152152        s = atof(scale->GetValue().mb_str());
    153153        wxString str = time->GetValue();
    154         if (str[0u] == '*') str[0u] = '-';
     154        if (!str.empty() && str[0u] == '*') str[0u] = '-';
    155155        T = atof(str.mb_str());
    156156        return PresentationMark(v, a, t, s, T);
Note: See TracChangeset for help on using the changeset viewer.