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
1d47f9e6
Commit
1d47f9e6
authored
Sep 09, 2005
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a possible segfault patch by Brian Robb
parent
18dc9cc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/extras/libc.c
src/extras/libc.c
+9
-1
No files found.
src/extras/libc.c
View file @
1d47f9e6
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <ctype.h>
#include <ctype.h>
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc_common.h>
#undef iconv_t
#undef iconv_t
#undef iconv_open
#undef iconv_open
...
@@ -612,7 +613,14 @@ size_t vlc_iconv( vlc_iconv_t cd, char **inbuf, size_t *inbytesleft,
...
@@ -612,7 +613,14 @@ size_t vlc_iconv( vlc_iconv_t cd, char **inbuf, size_t *inbytesleft,
#if defined(HAVE_ICONV)
#if defined(HAVE_ICONV)
return
iconv
(
cd
,
inbuf
,
inbytesleft
,
outbuf
,
outbytesleft
);
return
iconv
(
cd
,
inbuf
,
inbytesleft
,
outbuf
,
outbytesleft
);
#else
#else
int
i_bytes
=
__MIN
(
*
inbytesleft
,
*
outbytesleft
);
int
i_bytes
;
if
(
inbytesleft
==
NULL
||
outbytesleft
==
NULL
)
{
return
0
;
}
i_bytes
=
__MIN
(
*
inbytesleft
,
*
outbytesleft
);
if
(
!
inbuf
||
!
outbuf
||
!
i_bytes
)
return
(
size_t
)(
-
1
);
if
(
!
inbuf
||
!
outbuf
||
!
i_bytes
)
return
(
size_t
)(
-
1
);
memcpy
(
*
outbuf
,
*
inbuf
,
i_bytes
);
memcpy
(
*
outbuf
,
*
inbuf
,
i_bytes
);
inbuf
+=
i_bytes
;
inbuf
+=
i_bytes
;
...
...
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