Bug 18442 - re_syntax_options namespace
Summary: re_syntax_options namespace
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: regex (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 15:31 UTC by Joseph Myers
Modified: 2015-06-05 09:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2015-05-21 15:31:35 UTC
Use of regcomp (POSIX) brings in references to re_syntax_options (non-POSIX); re_comp (UNIX98 and older legacy) actually uses re_syntax_options (not in those standards) rather than just being in the same .o file.  (As this is a data symbol that users can set directly, fixing this is harder than simply using an implementation-namespace name with a weak alias as can be done for functions.)
Comment 1 Sourceware Commits 2015-05-21 16:25:28 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  9d12d7652b830635528639ece2206ecf5bb9ffbf (commit)
      from  0f87de79e935b2f8bcc2b90ab750a358c26f6715 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9d12d7652b830635528639ece2206ecf5bb9ffbf

commit 9d12d7652b830635528639ece2206ecf5bb9ffbf
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu May 21 16:24:24 2015 +0000

    linknamespace: whitelist re_syntax_options.
    
    This patch adds re_syntax_options (bug 18442) to the set of symbols
    that are whitelisted in the linknamespace tests because, while the
    references to them are genuine bugs that should be fixed, the
    involvement of data symbols makes them harder to fix than most such
    bugs.
    
    Tested for x86_64 and x86.
    
    	* conform/linknamespace.pl (@whitelist): Add re_syntax_options.
    	* conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
    	Remove variable.
    	(test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
    	(test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
    	(test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                |    9 +++++++++
 conform/Makefile         |    4 ----
 conform/linknamespace.pl |    5 ++++-
 3 files changed, 13 insertions(+), 5 deletions(-)