Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
72528be8
Commit
72528be8
authored
Sep 29, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msadpcm32.acm: Stop converting data instead of crashing.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
parent
972a74dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
msadp32.c
dlls/msadp32.acm/msadp32.c
+10
-2
No files found.
dlls/msadp32.acm/msadp32.c
View file @
72528be8
...
...
@@ -249,9 +249,17 @@ static void cvtSSms16K(const ACMDRVSTREAMINSTANCE *adsi,
{
const
unsigned
char
*
in_src
=
src
;
assert
(
*
src
<=
6
);
/* Catch a problem from Tomb Raider III (bug 21000) where it passes
* invalid data after a valid sequence of blocks */
if
(
*
src
>
6
||
*
(
src
+
1
)
>
6
)
{
/* Recalculate the amount of used output buffer. We are not changing
* nsrc, let's assume the bad data was parsed */
*
ndst
-=
nblock
*
nsamp_blk
*
adsi
->
pwfxDst
->
nBlockAlign
;
WARN
(
"Invalid ADPCM data, stopping conversion
\n
"
);
break
;
}
coeffL
=
MSADPCM_CoeffSet
[
*
src
++
];
assert
(
*
src
<=
6
);
coeffR
=
MSADPCM_CoeffSet
[
*
src
++
];
ideltaL
=
R16
(
src
);
src
+=
2
;
...
...
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