diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-09-19 14:30:56 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2009-09-19 14:30:56 +0000 |
commit | bdd37476c0a55d39013e3eb615900606daa2c1e2 (patch) | |
tree | 104141a25c3f2c8446c83bef55f12115afd8b761 /recipes/audiofile/audiofile-0.2.6/CVE-2008-5824.patch | |
parent | 86d4dd34f8d4ca060a1e11a8bf1b7d5ad0f76d5e (diff) |
audiofile: Security fix CVE-2008-5824, coding style fixes from openSUSE, recipe simplified.
Diffstat (limited to 'recipes/audiofile/audiofile-0.2.6/CVE-2008-5824.patch')
-rw-r--r-- | recipes/audiofile/audiofile-0.2.6/CVE-2008-5824.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes/audiofile/audiofile-0.2.6/CVE-2008-5824.patch b/recipes/audiofile/audiofile-0.2.6/CVE-2008-5824.patch new file mode 100644 index 0000000000..31233d22b3 --- /dev/null +++ b/recipes/audiofile/audiofile-0.2.6/CVE-2008-5824.patch @@ -0,0 +1,23 @@ +diff -Naur audiofile-0.2.6/libaudiofile/modules/msadpcm.c audiofile-0.2.6-mp/libaudiofile/modules/msadpcm.c +--- audiofile-0.2.6/libaudiofile/modules/msadpcm.c 2004-03-06 07:39:23.000000000 +0100 ++++ audiofile-0.2.6-mp/libaudiofile/modules/msadpcm.c 2009-01-20 20:05:14.919961000 +0100 +@@ -129,8 +129,7 @@ + ms_adpcm_state *state[2]; + + /* Calculate the number of bytes needed for decoded data. */ +- outputLength = msadpcm->samplesPerBlock * sizeof (int16_t) * +- msadpcm->track->f.channelCount; ++ outputLength = msadpcm->samplesPerBlock * sizeof (int16_t); + + channelCount = msadpcm->track->f.channelCount; + +@@ -180,8 +179,7 @@ + The first two samples have already been 'decoded' in + the block header. + */ +- samplesRemaining = (msadpcm->samplesPerBlock - 2) * +- msadpcm->track->f.channelCount; ++ samplesRemaining = msadpcm->samplesPerBlock - 2; + + while (samplesRemaining > 0) + { |