This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://sourceware.org/bugzilla/show_bug.cgi?id=23865

            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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]