Bug 219009

Summary: mail/spmfilter: Improve regex conformance
Product: Ports & Packages Reporter: Kyle Evans <kevans>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: ast
Priority: --- Flags: bugzilla: maintainer-feedback? (ast)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 218495    
Attachments:
Description Flags
svn(1) diff of mail/spmfilter none

Description Kyle Evans freebsd_committer freebsd_triage 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 freebsd_triage 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