Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
f0d55dab
Commit
f0d55dab
authored
Apr 12, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Block setlocale()
This has already caused some problems (e.g. live555)
parent
389dcfad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
bin/override.c
bin/override.c
+18
-0
No files found.
bin/override.c
View file @
f0d55dab
...
@@ -196,6 +196,24 @@ int sigaction (int signum, const struct sigaction *act, struct sigaction *old)
...
@@ -196,6 +196,24 @@ int sigaction (int signum, const struct sigaction *act, struct sigaction *old)
}
}
/*** Locales ***
* setlocale() is not thread-safe and has a tendency to crash other threads as
* quite many libc and libintl calls depend on the locale.
* Use uselocale() instead for thread-safety.
*/
#include <locale.h>
char
*
setlocale
(
int
cat
,
const
char
*
locale
)
{
if
(
override
&&
locale
!=
NULL
)
{
LOG
(
"Blocked"
,
"%d,
\"
%s
\"
"
,
cat
,
locale
);
return
NULL
;
}
return
CALL
(
setlocale
,
cat
,
locale
);
}
/*** Xlib ****/
/*** Xlib ****/
#ifdef HAVE_X11_XLIB_H
#ifdef HAVE_X11_XLIB_H
# include <X11/Xlib.h>
# include <X11/Xlib.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment