[Bug string/23865] New: wcsstr is quadratic-time

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Bug string/23865] New: wcsstr is quadratic-time

agentzh at gmail dot com

            Bug ID: 23865
           Summary: wcsstr is quadratic-time
           Product: glibc
           Version: 2.28
            Status: NEW
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---

The wcsstr implementation in glibc is a naive O(mn) implementation, which
allows denial of service with untrusted inputs.  A smarter O(m+n)
implementation should be used, as with strstr.

You are receiving this mail because:
You are on the CC list for the bug.