Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5e7e45de
Commit
5e7e45de
authored
Apr 25, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_ReadLine: correctly return an error on overflow (fixes #7361)
parent
c10e43a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/input/stream.c
src/input/stream.c
+4
-1
No files found.
src/input/stream.c
View file @
5e7e45de
...
...
@@ -1472,7 +1472,7 @@ char *stream_ReadLine( stream_t *s )
char
*
p_line
=
NULL
;
int
i_line
=
0
,
i_read
=
0
;
while
(
i_read
<
STREAM_LINE_MAX
)
for
(
;;
)
{
char
*
psz_eol
;
const
uint8_t
*
p_data
;
...
...
@@ -1585,6 +1585,9 @@ char *stream_ReadLine( stream_t *s )
if
(
i_data
<=
0
)
break
;
/* Hmmm */
i_line
+=
i_data
;
i_read
+=
i_data
;
if
(
i_read
>=
STREAM_LINE_MAX
)
goto
error
;
/* line too long */
}
if
(
i_read
>
0
)
...
...
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