|
Message-Id: <6600F15C-80E5-4CAE-8749-F77323C58D17@gmail.com>
Date: Fri, 17 Mar 2017 14:33:02 +0100
From: Julien Ramseier <j.ramseier@...il.com>
To: musl@...ts.openwall.com
Subject: [PATCH] regex: fix newline matching with negated brackets
With REG_NEWLINE, POSIX says:
"A <newline> in string shall not be matched by a period outside
a bracket expression or by any form of a non-matching list"
musl currently matches newlines with negated brackets, even if
REG_NEWLINE is used. Attached patch fixes the issue, although
I'm not sure if it's the best way to do it.
Also see similar glibc bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=3957
Download attachment "regcomp-newline-neg-bracket.patch" of type "application/octet-stream" (775 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.