Changeset 103843 in webkit


Ignore:
Timestamp:
Dec 30, 2011 9:01:20 AM (12 years ago)
Author:
mitz@apple.com
Message:

EnvironmentUtilities::stripValuesEndingWithString fails when the variable ends with the search value
https://bugs.webkit.org/show_bug.cgi?id=75389

Reviewed by Anders Carlsson.

  • Platform/unix/EnvironmentUtilities.cpp:

(WebKit::EnvironmentUtilities::stripValuesEndingWithString): Fixed an off-by-1 error when
examining the character after the match.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r103806 r103843  
     12011-12-30  Dan Bernstein  <mitz@apple.com>
     2
     3        EnvironmentUtilities::stripValuesEndingWithString fails when the variable ends with the search value
     4        https://bugs.webkit.org/show_bug.cgi?id=75389
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * Platform/unix/EnvironmentUtilities.cpp:
     9        (WebKit::EnvironmentUtilities::stripValuesEndingWithString): Fixed an off-by-1 error when
     10        examining the character after the match.
     11
    1122011-12-29  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
    213
  • trunk/Source/WebKit2/Platform/unix/EnvironmentUtilities.cpp

    r95901 r103843  
    8787    match = strstr(componentStart, searchValue);
    8888    while (match != NULL) {
    89         if (match[searchLength + 1] == '\0')
     89        if (match[searchLength] == '\0')
    9090            break;
    9191        match = strstr(match + 1, searchValue);
Note: See TracChangeset for help on using the changeset viewer.