Bug 219009 - mail/spmfilter: Improve regex conformance
Summary: mail/spmfilter: Improve regex conformance
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks: 218495
  Show dependency treegraph
 
Reported: 2017-05-02 02:13 UTC by Kyle Evans
Modified: 2017-05-25 20:13 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ast)


Attachments
svn(1) diff of mail/spmfilter (651 bytes, patch)
2017-05-02 02:13 UTC, Kyle Evans
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Evans freebsd_committer 2017-05-02 02:13:19 UTC
Created attachment 182238 [details]
svn(1) diff of mail/spmfilter

Hello!

In EREs, left-brace is not to be interpreted as an ordinary character unless escaped. Using an unescaped left-brace as part of an invalid repetition specification is undefined behavior.

Attached is a patch to escape one instance of such undefined behavior usage to fix inconsistency in how we treat them between BREs and EREs. This was discovered as part of the exp-run in PR 218495.

Thanks,

Kyle Evans
Comment 1 commit-hook freebsd_committer 2017-05-25 20:13:37 UTC
A commit references this bug:

Author: bapt
Date: Thu May 25 20:12:32 UTC 2017
New revision: 441714
URL: https://svnweb.freebsd.org/changeset/ports/441714

Log:
  In EREs, left-brace is not to be interpreted as an ordinary character unless
  escaped. Using an unescaped left-brace as part of an invalid repetition
  specification is undefined behavior.

  PR:		219009
  Submitted by:	Kyle Evans <bsdports@kyle-evans.net>
  Approved by:	maintainer timeout (3 weeks)

Changes:
  head/mail/spmfilter/Makefile