Skip to content

strings: assembly optimization causes regression in functionality #15679

Closed

Description

@dsnet

Commit 6b02a19 caused a regression in the strings package that causes some tests to fail.

A simple test to exercise this behavior is the following:

strings.Contains("abcdef?v=profileM", "abcdef?v=profile&")

On go1.6, this returns false as expected.
On 6b02a19, this returns true, which is incorrect.

/cc @rsc, @TocarIP, @nigeltao

Activity

  1. added this to the Go1.7 milestone on May 13, 2016
  2. bradfitz commented on May 13, 2016

    @bradfitz
    Contributor

    /cc @randall77 too

  3. gopherbot commented on May 15, 2016

    @gopherbot
    Contributor

    CL https://golang.org/cl/23106 mentions this issue.

  4. minux commented on May 15, 2016

    @minux
    Member
  5. randall77 commented on May 15, 2016

    @randall77
    Contributor

    I'll open a separate issue.

  6. locked and limited conversation to collaborators on May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions