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
1fcf4a83
Commit
1fcf4a83
authored
Apr 22, 2012
by
John Peterson
Committed by
Laurent Aimar
May 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rar: + Robust to non-specification header: Missing added block size flag.
parent
c9ef39b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/access/rar/rar.c
modules/access/rar/rar.c
+4
-1
No files found.
modules/access/rar/rar.c
View file @
1fcf4a83
...
...
@@ -66,6 +66,7 @@ enum {
RAR_BLOCK_MARKER
=
0x72
,
RAR_BLOCK_ARCHIVE
=
0x73
,
RAR_BLOCK_FILE
=
0x74
,
RAR_BLOCK_SUBBLOCK
=
0x7a
,
RAR_BLOCK_END
=
0x7b
,
};
enum
{
...
...
@@ -90,7 +91,9 @@ static int PeekBlock(stream_t *s, rar_block_t *hdr)
hdr
->
flags
=
GetWLE
(
&
peek
[
3
]);
hdr
->
size
=
GetWLE
(
&
peek
[
5
]);
hdr
->
add_size
=
0
;
if
(
hdr
->
flags
&
0x8000
)
{
if
((
hdr
->
flags
&
0x8000
)
||
hdr
->
type
==
RAR_BLOCK_FILE
||
hdr
->
type
==
RAR_BLOCK_SUBBLOCK
)
{
if
(
peek_size
<
11
)
return
VLC_EGENERIC
;
hdr
->
add_size
=
GetDWLE
(
&
peek
[
7
]);
...
...
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