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
2f65bd42
Commit
2f65bd42
authored
Jan 02, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bunch of format string injection in VCDX and CDDA.
Initially reported by Kevin Finisterre
parent
b11fb39b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
modules/access/cdda/access.c
modules/access/cdda/access.c
+4
-4
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+7
-7
No files found.
modules/access/cdda/access.c
View file @
2f65bd42
...
...
@@ -92,17 +92,17 @@ cdio_log_handler( cdio_log_level_t level, const char message[] )
case
CDIO_LOG_DEBUG
:
case
CDIO_LOG_INFO
:
if
(
p_cdda
->
i_debug
&
INPUT_DBG_CDIO
)
msg_Dbg
(
p_cdda_input
,
message
);
msg_Dbg
(
p_cdda_input
,
"%s"
,
message
);
break
;
case
CDIO_LOG_WARN
:
msg_Warn
(
p_cdda_input
,
message
);
msg_Warn
(
p_cdda_input
,
"%s"
,
message
);
break
;
case
CDIO_LOG_ERROR
:
case
CDIO_LOG_ASSERT
:
msg_Err
(
p_cdda_input
,
message
);
msg_Err
(
p_cdda_input
,
"%s"
,
message
);
break
;
default:
msg_Warn
(
p_cdda_input
,
message
,
msg_Warn
(
p_cdda_input
,
"%s
\n
%s %d"
,
message
,
"the above message had unknown cdio log level"
,
level
);
break
;
...
...
modules/access/vcdx/access.c
View file @
2f65bd42
...
...
@@ -91,17 +91,17 @@ cdio_log_handler (cdio_log_level_t level, const char message[])
case
CDIO_LOG_DEBUG
:
case
CDIO_LOG_INFO
:
if
(
p_vcdplayer
->
i_debug
&
INPUT_DBG_CDIO
)
msg_Dbg
(
p_vcd_access
,
message
);
msg_Dbg
(
p_vcd_access
,
"%s"
,
message
);
break
;
case
CDIO_LOG_WARN
:
msg_Warn
(
p_vcd_access
,
message
);
msg_Warn
(
p_vcd_access
,
"%s"
,
message
);
break
;
case
CDIO_LOG_ERROR
:
case
CDIO_LOG_ASSERT
:
msg_Err
(
p_vcd_access
,
message
);
msg_Err
(
p_vcd_access
,
"%s"
,
message
);
break
;
default:
msg_Warn
(
p_vcd_access
,
message
,
msg_Warn
(
p_vcd_access
,
"%s
\n
%s %d"
,
message
,
_
(
"The above message had unknown log level"
),
level
);
}
...
...
@@ -117,14 +117,14 @@ vcd_log_handler (vcd_log_level_t level, const char message[])
case
VCD_LOG_DEBUG
:
case
VCD_LOG_INFO
:
if
(
p_vcdplayer
->
i_debug
&
INPUT_DBG_VCDINFO
)
msg_Dbg
(
p_vcd_access
,
message
);
msg_Dbg
(
p_vcd_access
,
"%s"
,
message
);
break
;
case
VCD_LOG_WARN
:
msg_Warn
(
p_vcd_access
,
message
);
msg_Warn
(
p_vcd_access
,
"%s"
,
message
);
break
;
case
VCD_LOG_ERROR
:
case
VCD_LOG_ASSERT
:
msg_Err
(
p_vcd_access
,
message
);
msg_Err
(
p_vcd_access
,
"%s"
,
message
);
break
;
default:
msg_Warn
(
p_vcd_access
,
"%s
\n
%s %d"
,
message
,
...
...
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