[Bug 289468] possible bug in libc's regex

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 11 Sep 2025 15:44:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289468

            Bug ID: 289468
           Summary: possible bug in libc's regex
           Product: Base System
           Version: 15.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: hiroo.ono+freebsd@gmail.com

Created attachment 263717
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=263717&action=edit
test example

After re_format(7), libc's regex code should report that regex "h+" match "hh".
But testing on 15-PRERELEASE and 14-STABLE, it seems it doesn't.
See attached test code regex.c.

I think it is a bug, and it affects security/sssd2 rejecting [domain/SOMETHING]
section in its configuration file.

-- 
You are receiving this mail because:
You are the assignee for the bug.