diff options
Diffstat (limited to 'audio/audacity/patches')
-rw-r--r-- | audio/audacity/patches/patch-ba | 26 | ||||
-rw-r--r-- | audio/audacity/patches/patch-bb | 15 | ||||
-rw-r--r-- | audio/audacity/patches/patch-bc | 36 |
3 files changed, 0 insertions, 77 deletions
diff --git a/audio/audacity/patches/patch-ba b/audio/audacity/patches/patch-ba deleted file mode 100644 index 23b33102b1b..00000000000 --- a/audio/audacity/patches/patch-ba +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-ba,v 1.2 2015/04/20 13:38:23 rodent Exp $ - -Bounds checking. - ---- lib-src/portsmf/strparse.cpp.orig 2015-03-02 01:07:05.000000000 +0000 -+++ lib-src/portsmf/strparse.cpp -@@ -19,8 +19,9 @@ char String_parse::peek() - } - - --void String_parse::get_nonspace_quoted(string &field) -+void String_parse::get_nonspace_quoted(string &field, int flen) - { -+ char *ofield = field; - field.clear(); - skip_space(); - bool quoted = false; -@@ -29,7 +30,7 @@ void String_parse::get_nonspace_quoted(s - field.append(1, '"'); - pos = pos + 1; - } -- while ((*str)[pos] && (quoted || !isspace((*str)[pos]))) { -+ while ((*str)[pos] && (quoted || !isspace((*str)[pos])) && (field - ofield) < (flen - 2)) { - if ((*str)[pos] == '"') { - if (quoted) { - field.append(1, '"'); diff --git a/audio/audacity/patches/patch-bb b/audio/audacity/patches/patch-bb deleted file mode 100644 index 87389bc3044..00000000000 --- a/audio/audacity/patches/patch-bb +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-bb,v 1.2 2015/04/20 13:38:23 rodent Exp $ - -Bounds checking. - ---- lib-src/portsmf/strparse.h.orig 2015-03-02 01:07:05.000000000 +0000 -+++ lib-src/portsmf/strparse.h -@@ -10,7 +10,7 @@ public: - } - void skip_space(); - char peek(); -- void get_nonspace_quoted(std::string &field); -+ void get_nonspace_quoted(std::string &field, int flen); - // get the remaining characters, skipping initial spaces and final return - void get_remainder(std::string &field); - }; diff --git a/audio/audacity/patches/patch-bc b/audio/audacity/patches/patch-bc deleted file mode 100644 index 50c1649d4ec..00000000000 --- a/audio/audacity/patches/patch-bc +++ /dev/null @@ -1,36 +0,0 @@ -$NetBSD: patch-bc,v 1.2 2015/04/20 13:38:23 rodent Exp $ - -Bounds checking. - ---- lib-src/portsmf/allegrord.cpp.orig 2015-03-02 01:07:05.000000000 +0000 -+++ lib-src/portsmf/allegrord.cpp -@@ -169,9 +169,9 @@ bool Alg_reader::parse() - Alg_parameters_ptr attributes = NULL; - if (line_parser.peek() == '#') { - // look for #track -- line_parser.get_nonspace_quoted(field); -+ line_parser.get_nonspace_quoted(field, field_max); - if (streql(field.c_str(), "#track")) { -- line_parser.get_nonspace_quoted(field); // number -+ line_parser.get_nonspace_quoted(field, field_max - strlen(field)); // number - field.insert(0, " "); // need char at beginning because - // parse_int ignores the first character of the argument - track_num = parse_int(field); -@@ -204,7 +204,7 @@ bool Alg_reader::parse() - parse_error(field, 0, "#offset specified twice"); - } - offset_found = true; -- line_parser.get_nonspace_quoted(field); // number -+ line_parser.get_nonspace_quoted(field, field_max); // number - field.insert(0, " "); // need char at beginning because - // parse_real ignores first character in the argument - offset = parse_real(field); -@@ -212,7 +212,7 @@ bool Alg_reader::parse() - } else { - // we must have a track to insert into - if (seq->tracks() == 0) seq->add_track(0); -- line_parser.get_nonspace_quoted(field); -+ line_parser.get_nonspace_quoted(field, field_max - strlen(field)); - char pk = line_parser.peek(); - // attributes are parsed as two adjacent nonspace_quoted tokens - // so we have to conditionally call get_nonspace_quoted() again |