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
dd4d8155
Commit
dd4d8155
authored
Feb 16, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auhal: fix insufficient bounds checking introduced in [
14250ccc
]
parent
8aeca915
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+7
-0
No files found.
modules/audio_output/auhal.c
View file @
dd4d8155
...
...
@@ -997,6 +997,13 @@ static void RebuildDeviceList(audio_output_t * p_aout)
bool
b_digital
=
false
;
UInt32
i_id
=
deviceIDs
[
i
];
/* Retrieve the length of the device name */
err
=
AudioObjectGetPropertyDataSize
(
deviceIDs
[
i
],
&
deviceNameAddress
,
0
,
NULL
,
&
propertySize
);
if
(
err
!=
noErr
)
{
msg_Dbg
(
p_aout
,
"failed to get name size for device %i"
,
deviceIDs
[
i
]);
continue
;
}
/* Retrieve the name of the device */
err
=
AudioObjectGetPropertyData
(
deviceIDs
[
i
],
&
deviceNameAddress
,
0
,
NULL
,
&
propertySize
,
&
device_name_ref
);
if
(
err
!=
noErr
)
{
...
...
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