Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7c4ea8d0
Commit
7c4ea8d0
authored
Nov 11, 2001
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed a buffer overflow in CSSAuth()
parent
81cfe15f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
extras/libdvdcss/css.c
extras/libdvdcss/css.c
+5
-4
No files found.
extras/libdvdcss/css.c
View file @
7c4ea8d0
...
...
@@ -2,7 +2,7 @@
* css.c: Functions for DVD authentification and unscrambling
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: css.c,v 1.1
3 2001/10/16 16:51:28 stef
Exp $
* $Id: css.c,v 1.1
4 2001/11/11 04:51:10 jlj
Exp $
*
* Author: Stphane Borel <stef@via.ecp.fr>
* Hkan Hjort <d95hjort@dtek.chalmers.se>
...
...
@@ -98,7 +98,7 @@ int CSSAuth( dvdcss_handle dvdcss )
{
/* structures defined in cdrom.h or dvdio.h */
unsigned
char
p_buffer
[
10
];
char
psz_warning
[
32
];
char
psz_warning
[
48
];
int
i_ret
=
-
1
;
int
i
;
...
...
@@ -122,7 +122,7 @@ int CSSAuth( dvdcss_handle dvdcss )
/* Init sequence, request AGID */
for
(
i
=
1
;
i
<
4
;
++
i
)
{
s
printf
(
psz_warning
,
"requesting AGID %d"
,
i
);
s
nprintf
(
psz_warning
,
sizeof
(
psz_warning
)
,
"requesting AGID %d"
,
i
);
_dvdcss_debug
(
dvdcss
,
psz_warning
);
i_ret
=
ioctl_ReportAgid
(
dvdcss
->
i_fd
,
&
dvdcss
->
css
.
i_agid
);
...
...
@@ -185,7 +185,8 @@ int CSSAuth( dvdcss_handle dvdcss )
if
(
memcmp
(
dvdcss
->
css
.
disc
.
p_key_check
,
dvdcss
->
css
.
disc
.
p_key1
,
KEY_SIZE
)
==
0
)
{
sprintf
(
psz_warning
,
"drive authentic, using variant %d"
,
i
);
snprintf
(
psz_warning
,
sizeof
(
psz_warning
),
"drive authentic, using variant %d"
,
i
);
_dvdcss_debug
(
dvdcss
,
psz_warning
);
dvdcss
->
css
.
disc
.
i_varient
=
i
;
break
;
...
...
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