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
986116e2
Commit
986116e2
authored
Sep 15, 2003
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bad SAP packets with no \0 between headers and payload
parent
1b24f8ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/misc/sap.c
modules/misc/sap.c
+9
-1
No files found.
modules/misc/sap.c
View file @
986116e2
...
...
@@ -2,7 +2,7 @@
* sap.c : SAP interface module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: sap.c,v 1.2
2 2003/09/11 15:34:16
zorglub Exp $
* $Id: sap.c,v 1.2
3 2003/09/15 08:33:29
zorglub Exp $
*
* Authors: Arnaud Schauly <gitan@via.ecp.fr>
* Clment Stenac <zorglub@via.ecp.fr>
...
...
@@ -590,6 +590,14 @@ static int parse_sap( char *p_packet )
//Looks for the first '\0' byte after length
for
(;
p_packet
[
i_hlen
]
!=
'\0'
;
i_hlen
++
);
if
(
i_hlen
>
50
)
/* Definitely too long...
Maybe we have a fucked up packet without \0 */
{
/* As a workaround, we search for "v=" */
i_hlen
=
4
;
for
(;
p_packet
[
i_hlen
]
!=
'v'
&&
p_packet
[
i_hlen
+
1
]
!=
'='
;
i_hlen
++
);
return
i_hlen
-
1
;
}
return
(
i_hlen
);
}
...
...
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