Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2e59142f
Commit
2e59142f
authored
Dec 17, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sctp: dont abort on invalid input
Fixes Ticket1865 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d28dfa2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sctp.c
libavformat/sctp.c
+4
-2
No files found.
libavformat/sctp.c
View file @
2e59142f
...
...
@@ -296,8 +296,10 @@ static int sctp_write(URLContext *h, const uint8_t *buf, int size)
/*StreamId is introduced as a 2byte code into the stream*/
struct
sctp_sndrcvinfo
info
=
{
0
};
info
.
sinfo_stream
=
AV_RB16
(
buf
);
if
(
info
.
sinfo_stream
>
s
->
max_streams
)
abort
();
if
(
info
.
sinfo_stream
>
s
->
max_streams
)
{
av_log
(
h
,
AV_LOG_ERROR
,
"bad input data
\n
"
);
return
AVERROR
(
EINVAL
);
}
ret
=
ff_sctp_send
(
s
->
fd
,
buf
+
2
,
size
-
2
,
&
info
,
MSG_EOR
);
}
else
ret
=
send
(
s
->
fd
,
buf
,
size
,
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