Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
db8ff4e3
Commit
db8ff4e3
authored
Jul 03, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: fix crash in getaddrinfo due to bugs in the OSX runtime
parent
4b238dc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+8
-0
No files found.
src/network/getaddrinfo.c
View file @
db8ff4e3
...
...
@@ -121,5 +121,13 @@ int vlc_getaddrinfo (const char *node, unsigned port,
node
=
NULL
;
}
#if defined(__APPLE__) && defined(AI_NUMERICSERV)
/* work-around a segfault in libSystem on Darwin 12 and later
* if AI_NUMERICSERV is set and servname is either NULL or "0"
* radar://13058317 */
if
((
hints
->
ai_flags
&
AI_NUMERICSERV
)
&&
(
servname
==
NULL
||
(
servname
[
0
]
==
'0'
&&
servname
[
1
]
==
0
)))
servname
=
(
char
*
)
"00"
;
#endif
return
getaddrinfo
(
node
,
servname
,
hints
,
res
);
}
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