import wavpack-5.1.0-9.el8
This commit is contained in:
commit
d43f4d57cd
|
@ -0,0 +1 @@
|
||||||
|
SOURCES/wavpack-5.1.0.tar.bz2
|
|
@ -0,0 +1 @@
|
||||||
|
ed96443e3fc915128e1002a0f9f2c7ae9bcdc09b SOURCES/wavpack-5.1.0.tar.bz2
|
|
@ -0,0 +1,108 @@
|
||||||
|
From: David Bryant <david@wavpack.com>
|
||||||
|
Date: Sun, 4 Feb 2018 11:28:15 -0800
|
||||||
|
Subject: [PATCH] issue #27, do not overwrite stack on corrupt RF64 file
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/cli/riff.c b/cli/riff.c
|
||||||
|
index 8b1af45..de98c1e 100644
|
||||||
|
--- a/cli/riff.c
|
||||||
|
+++ b/cli/riff.c
|
||||||
|
@@ -42,6 +42,7 @@ typedef struct {
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
+#define CS64ChunkFormat "4D"
|
||||||
|
#define DS64ChunkFormat "DDDL"
|
||||||
|
|
||||||
|
#define WAVPACK_NO_ERROR 0
|
||||||
|
@@ -101,13 +102,13 @@ int ParseRiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpack
|
||||||
|
|
||||||
|
if (!strncmp (chunk_header.ckID, "ds64", 4)) {
|
||||||
|
if (chunk_header.ckSize < sizeof (DS64Chunk) ||
|
||||||
|
- !DoReadFile (infile, &ds64_chunk, chunk_header.ckSize, &bcount) ||
|
||||||
|
- bcount != chunk_header.ckSize) {
|
||||||
|
+ !DoReadFile (infile, &ds64_chunk, sizeof (DS64Chunk), &bcount) ||
|
||||||
|
+ bcount != sizeof (DS64Chunk)) {
|
||||||
|
error_line ("%s is not a valid .WAV file!", infilename);
|
||||||
|
return WAVPACK_SOFT_ERROR;
|
||||||
|
}
|
||||||
|
else if (!(config->qmode & QMODE_NO_STORE_WRAPPER) &&
|
||||||
|
- !WavpackAddWrapper (wpc, &ds64_chunk, chunk_header.ckSize)) {
|
||||||
|
+ !WavpackAddWrapper (wpc, &ds64_chunk, sizeof (DS64Chunk))) {
|
||||||
|
error_line ("%s", WavpackGetErrorMessage (wpc));
|
||||||
|
return WAVPACK_SOFT_ERROR;
|
||||||
|
}
|
||||||
|
@@ -315,10 +316,11 @@ int ParseRiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpack
|
||||||
|
|
||||||
|
int WriteRiffHeader (FILE *outfile, WavpackContext *wpc, int64_t total_samples, int qmode)
|
||||||
|
{
|
||||||
|
- int do_rf64 = 0, write_junk = 1;
|
||||||
|
+ int do_rf64 = 0, write_junk = 1, table_length = 0;
|
||||||
|
ChunkHeader ds64hdr, datahdr, fmthdr;
|
||||||
|
RiffChunkHeader riffhdr;
|
||||||
|
DS64Chunk ds64_chunk;
|
||||||
|
+ CS64Chunk cs64_chunk;
|
||||||
|
JunkChunk junkchunk;
|
||||||
|
WaveHeader wavhdr;
|
||||||
|
uint32_t bcount;
|
||||||
|
@@ -380,6 +382,7 @@ int WriteRiffHeader (FILE *outfile, WavpackContext *wpc, int64_t total_samples,
|
||||||
|
strncpy (riffhdr.formType, "WAVE", sizeof (riffhdr.formType));
|
||||||
|
total_riff_bytes = sizeof (riffhdr) + wavhdrsize + sizeof (datahdr) + ((total_data_bytes + 1) & ~(int64_t)1);
|
||||||
|
if (do_rf64) total_riff_bytes += sizeof (ds64hdr) + sizeof (ds64_chunk);
|
||||||
|
+ total_riff_bytes += table_length * sizeof (CS64Chunk);
|
||||||
|
if (write_junk) total_riff_bytes += sizeof (junkchunk);
|
||||||
|
strncpy (fmthdr.ckID, "fmt ", sizeof (fmthdr.ckID));
|
||||||
|
strncpy (datahdr.ckID, "data", sizeof (datahdr.ckID));
|
||||||
|
@@ -394,11 +397,12 @@ int WriteRiffHeader (FILE *outfile, WavpackContext *wpc, int64_t total_samples,
|
||||||
|
|
||||||
|
if (do_rf64) {
|
||||||
|
strncpy (ds64hdr.ckID, "ds64", sizeof (ds64hdr.ckID));
|
||||||
|
- ds64hdr.ckSize = sizeof (ds64_chunk);
|
||||||
|
+ ds64hdr.ckSize = sizeof (ds64_chunk) + (table_length * sizeof (CS64Chunk));
|
||||||
|
CLEAR (ds64_chunk);
|
||||||
|
ds64_chunk.riffSize64 = total_riff_bytes;
|
||||||
|
ds64_chunk.dataSize64 = total_data_bytes;
|
||||||
|
ds64_chunk.sampleCount64 = total_samples;
|
||||||
|
+ ds64_chunk.tableLength = table_length;
|
||||||
|
riffhdr.ckSize = (uint32_t) -1;
|
||||||
|
datahdr.ckSize = (uint32_t) -1;
|
||||||
|
WavpackNativeToLittleEndian (&ds64hdr, ChunkHeaderFormat);
|
||||||
|
@@ -409,6 +413,14 @@ int WriteRiffHeader (FILE *outfile, WavpackContext *wpc, int64_t total_samples,
|
||||||
|
datahdr.ckSize = (uint32_t) total_data_bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ // this "table" is just a dummy placeholder for testing (normally not written)
|
||||||
|
+
|
||||||
|
+ if (table_length) {
|
||||||
|
+ strncpy (cs64_chunk.ckID, "dmmy", sizeof (cs64_chunk.ckID));
|
||||||
|
+ cs64_chunk.chunkSize64 = 12345678;
|
||||||
|
+ WavpackNativeToLittleEndian (&cs64_chunk, CS64ChunkFormat);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
// write the RIFF chunks up to just before the data starts
|
||||||
|
|
||||||
|
WavpackNativeToLittleEndian (&riffhdr, ChunkHeaderFormat);
|
||||||
|
@@ -418,8 +430,21 @@ int WriteRiffHeader (FILE *outfile, WavpackContext *wpc, int64_t total_samples,
|
||||||
|
|
||||||
|
if (!DoWriteFile (outfile, &riffhdr, sizeof (riffhdr), &bcount) || bcount != sizeof (riffhdr) ||
|
||||||
|
(do_rf64 && (!DoWriteFile (outfile, &ds64hdr, sizeof (ds64hdr), &bcount) || bcount != sizeof (ds64hdr))) ||
|
||||||
|
- (do_rf64 && (!DoWriteFile (outfile, &ds64_chunk, sizeof (ds64_chunk), &bcount) || bcount != sizeof (ds64_chunk))) ||
|
||||||
|
- (write_junk && (!DoWriteFile (outfile, &junkchunk, sizeof (junkchunk), &bcount) || bcount != sizeof (junkchunk))) ||
|
||||||
|
+ (do_rf64 && (!DoWriteFile (outfile, &ds64_chunk, sizeof (ds64_chunk), &bcount) || bcount != sizeof (ds64_chunk)))) {
|
||||||
|
+ error_line ("can't write .WAV data, disk probably full!");
|
||||||
|
+ return FALSE;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ // again, this is normally not written except for testing
|
||||||
|
+
|
||||||
|
+ while (table_length--)
|
||||||
|
+ if (!DoWriteFile (outfile, &cs64_chunk, sizeof (cs64_chunk), &bcount) || bcount != sizeof (cs64_chunk)) {
|
||||||
|
+ error_line ("can't write .WAV data, disk probably full!");
|
||||||
|
+ return FALSE;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+ if ((write_junk && (!DoWriteFile (outfile, &junkchunk, sizeof (junkchunk), &bcount) || bcount != sizeof (junkchunk))) ||
|
||||||
|
!DoWriteFile (outfile, &fmthdr, sizeof (fmthdr), &bcount) || bcount != sizeof (fmthdr) ||
|
||||||
|
!DoWriteFile (outfile, &wavhdr, wavhdrsize, &bcount) || bcount != wavhdrsize ||
|
||||||
|
!DoWriteFile (outfile, &datahdr, sizeof (datahdr), &bcount) || bcount != sizeof (datahdr)) {
|
|
@ -0,0 +1,28 @@
|
||||||
|
From: David Bryant <david@wavpack.com>
|
||||||
|
Date: Sat, 10 Feb 2018 16:01:39 -0800
|
||||||
|
Subject: [PATCH] issue #28, do not overwrite heap on corrupt DSDIFF file
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/cli/dsdiff.c b/cli/dsdiff.c
|
||||||
|
index 410dc1c..c016df9 100644
|
||||||
|
--- a/cli/dsdiff.c
|
||||||
|
+++ b/cli/dsdiff.c
|
||||||
|
@@ -153,7 +153,17 @@ int ParseDsdiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpa
|
||||||
|
error_line ("dsdiff file version = 0x%08x", version);
|
||||||
|
}
|
||||||
|
else if (!strncmp (dff_chunk_header.ckID, "PROP", 4)) {
|
||||||
|
- char *prop_chunk = malloc ((size_t) dff_chunk_header.ckDataSize);
|
||||||
|
+ char *prop_chunk;
|
||||||
|
+
|
||||||
|
+ if (dff_chunk_header.ckDataSize < 4 || dff_chunk_header.ckDataSize > 1024) {
|
||||||
|
+ error_line ("%s is not a valid .DFF file!", infilename);
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (debug_logging_mode)
|
||||||
|
+ error_line ("got PROP chunk of %d bytes total", (int) dff_chunk_header.ckDataSize);
|
||||||
|
+
|
||||||
|
+ prop_chunk = malloc ((size_t) dff_chunk_header.ckDataSize);
|
||||||
|
|
||||||
|
if (!DoReadFile (infile, prop_chunk, (uint32_t) dff_chunk_header.ckDataSize, &bcount) ||
|
||||||
|
bcount != dff_chunk_header.ckDataSize) {
|
|
@ -0,0 +1,62 @@
|
||||||
|
From: David Bryant <david@wavpack.com>
|
||||||
|
Date: Sun, 11 Feb 2018 16:37:47 -0800
|
||||||
|
Subject: [PATCH] issue #28, fix buffer overflows and bad allocs on corrupt CAF
|
||||||
|
files
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/cli/caff.c b/cli/caff.c
|
||||||
|
index ae57c4b..6248a71 100644
|
||||||
|
--- a/cli/caff.c
|
||||||
|
+++ b/cli/caff.c
|
||||||
|
@@ -89,8 +89,8 @@ typedef struct
|
||||||
|
|
||||||
|
#define CAFChannelDescriptionFormat "LLLLL"
|
||||||
|
|
||||||
|
-static const char TMH_full [] = { 1,2,3,13,9,10,5,6,12,14,15,16,17,9,4,18,7,8,19,20,21 };
|
||||||
|
-static const char TMH_std [] = { 1,2,3,11,8,9,5,6,10,12,13,14,15,7,4,16 };
|
||||||
|
+static const char TMH_full [] = { 1,2,3,13,9,10,5,6,12,14,15,16,17,9,4,18,7,8,19,20,21,0 };
|
||||||
|
+static const char TMH_std [] = { 1,2,3,11,8,9,5,6,10,12,13,14,15,7,4,16,0 };
|
||||||
|
|
||||||
|
static struct {
|
||||||
|
uint32_t mChannelLayoutTag; // Core Audio layout, 100 - 146 in high word, num channels in low word
|
||||||
|
@@ -274,10 +274,19 @@ int ParseCaffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpack
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (!strncmp (caf_chunk_header.mChunkType, "chan", 4)) {
|
||||||
|
- CAFChannelLayout *caf_channel_layout = malloc ((size_t) caf_chunk_header.mChunkSize);
|
||||||
|
+ CAFChannelLayout *caf_channel_layout;
|
||||||
|
|
||||||
|
- if (caf_chunk_header.mChunkSize < sizeof (CAFChannelLayout) ||
|
||||||
|
- !DoReadFile (infile, caf_channel_layout, (uint32_t) caf_chunk_header.mChunkSize, &bcount) ||
|
||||||
|
+ if (caf_chunk_header.mChunkSize < sizeof (CAFChannelLayout) || caf_chunk_header.mChunkSize > 1024) {
|
||||||
|
+ error_line ("this .CAF file has an invalid 'chan' chunk!");
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (debug_logging_mode)
|
||||||
|
+ error_line ("'chan' chunk is %d bytes", (int) caf_chunk_header.mChunkSize);
|
||||||
|
+
|
||||||
|
+ caf_channel_layout = malloc ((size_t) caf_chunk_header.mChunkSize);
|
||||||
|
+
|
||||||
|
+ if (!DoReadFile (infile, caf_channel_layout, (uint32_t) caf_chunk_header.mChunkSize, &bcount) ||
|
||||||
|
bcount != caf_chunk_header.mChunkSize) {
|
||||||
|
error_line ("%s is not a valid .CAF file!", infilename);
|
||||||
|
free (caf_channel_layout);
|
||||||
|
@@ -495,8 +504,15 @@ int ParseCaffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpack
|
||||||
|
}
|
||||||
|
else { // just copy unknown chunks to output file
|
||||||
|
|
||||||
|
- int bytes_to_copy = (uint32_t) caf_chunk_header.mChunkSize;
|
||||||
|
- char *buff = malloc (bytes_to_copy);
|
||||||
|
+ uint32_t bytes_to_copy = (uint32_t) caf_chunk_header.mChunkSize;
|
||||||
|
+ char *buff;
|
||||||
|
+
|
||||||
|
+ if (caf_chunk_header.mChunkSize < 0 || caf_chunk_header.mChunkSize > 1048576) {
|
||||||
|
+ error_line ("%s is not a valid .CAF file!", infilename);
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ buff = malloc (bytes_to_copy);
|
||||||
|
|
||||||
|
if (debug_logging_mode)
|
||||||
|
error_line ("extra unknown chunk \"%c%c%c%c\" of %d bytes",
|
|
@ -0,0 +1,75 @@
|
||||||
|
From 6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Bryant <david@wavpack.com>
|
||||||
|
Date: Tue, 24 Apr 2018 17:27:01 -0700
|
||||||
|
Subject: [PATCH 1/2] issue #33, sanitize size of unknown chunks before
|
||||||
|
malloc()
|
||||||
|
|
||||||
|
---
|
||||||
|
cli/dsdiff.c | 9 ++++++++-
|
||||||
|
cli/riff.c | 9 ++++++++-
|
||||||
|
cli/wave64.c | 9 ++++++++-
|
||||||
|
3 files changed, 24 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/cli/dsdiff.c b/cli/dsdiff.c
|
||||||
|
index c016df9..fa56bbb 100644
|
||||||
|
--- a/cli/dsdiff.c
|
||||||
|
+++ b/cli/dsdiff.c
|
||||||
|
@@ -279,7 +279,14 @@ int ParseDsdiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpa
|
||||||
|
else { // just copy unknown chunks to output file
|
||||||
|
|
||||||
|
int bytes_to_copy = (int)(((dff_chunk_header.ckDataSize) + 1) & ~(int64_t)1);
|
||||||
|
- char *buff = malloc (bytes_to_copy);
|
||||||
|
+ char *buff;
|
||||||
|
+
|
||||||
|
+ if (bytes_to_copy < 0 || bytes_to_copy > 4194304) {
|
||||||
|
+ error_line ("%s is not a valid .DFF file!", infilename);
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ buff = malloc (bytes_to_copy);
|
||||||
|
|
||||||
|
if (debug_logging_mode)
|
||||||
|
error_line ("extra unknown chunk \"%c%c%c%c\" of %d bytes",
|
||||||
|
diff --git a/cli/riff.c b/cli/riff.c
|
||||||
|
index de98c1e..7bddf63 100644
|
||||||
|
--- a/cli/riff.c
|
||||||
|
+++ b/cli/riff.c
|
||||||
|
@@ -286,7 +286,14 @@ int ParseRiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpack
|
||||||
|
else { // just copy unknown chunks to output file
|
||||||
|
|
||||||
|
int bytes_to_copy = (chunk_header.ckSize + 1) & ~1L;
|
||||||
|
- char *buff = malloc (bytes_to_copy);
|
||||||
|
+ char *buff;
|
||||||
|
+
|
||||||
|
+ if (bytes_to_copy < 0 || bytes_to_copy > 4194304) {
|
||||||
|
+ error_line ("%s is not a valid .WAV file!", infilename);
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ buff = malloc (bytes_to_copy);
|
||||||
|
|
||||||
|
if (debug_logging_mode)
|
||||||
|
error_line ("extra unknown chunk \"%c%c%c%c\" of %d bytes",
|
||||||
|
diff --git a/cli/wave64.c b/cli/wave64.c
|
||||||
|
index 591d640..fa928a0 100644
|
||||||
|
--- a/cli/wave64.c
|
||||||
|
+++ b/cli/wave64.c
|
||||||
|
@@ -241,7 +241,14 @@ int ParseWave64HeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpa
|
||||||
|
}
|
||||||
|
else { // just copy unknown chunks to output file
|
||||||
|
int bytes_to_copy = (chunk_header.ckSize + 7) & ~7L;
|
||||||
|
- char *buff = malloc (bytes_to_copy);
|
||||||
|
+ char *buff;
|
||||||
|
+
|
||||||
|
+ if (bytes_to_copy < 0 || bytes_to_copy > 4194304) {
|
||||||
|
+ error_line ("%s is not a valid .W64 file!", infilename);
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ buff = malloc (bytes_to_copy);
|
||||||
|
|
||||||
|
if (debug_logging_mode)
|
||||||
|
error_line ("extra unknown chunk \"%c%c%c%c\" of %d bytes",
|
||||||
|
--
|
||||||
|
2.14.3
|
||||||
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
From 26cb47f99d481ad9b93eeff80d26e6b63bbd7e15 Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Bryant <david@wavpack.com>
|
||||||
|
Date: Tue, 24 Apr 2018 22:18:07 -0700
|
||||||
|
Subject: [PATCH 2/2] issue #30 issue #31 issue #32: no multiple format chunks
|
||||||
|
in WAV or W64
|
||||||
|
|
||||||
|
---
|
||||||
|
cli/riff.c | 7 ++++++-
|
||||||
|
cli/wave64.c | 6 ++++++
|
||||||
|
2 files changed, 12 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/cli/riff.c b/cli/riff.c
|
||||||
|
index 7bddf63..5d6452e 100644
|
||||||
|
--- a/cli/riff.c
|
||||||
|
+++ b/cli/riff.c
|
||||||
|
@@ -53,7 +53,7 @@ extern int debug_logging_mode;
|
||||||
|
|
||||||
|
int ParseRiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, WavpackContext *wpc, WavpackConfig *config)
|
||||||
|
{
|
||||||
|
- int is_rf64 = !strncmp (fourcc, "RF64", 4), got_ds64 = 0;
|
||||||
|
+ int is_rf64 = !strncmp (fourcc, "RF64", 4), got_ds64 = 0, format_chunk = 0;
|
||||||
|
int64_t total_samples = 0, infilesize;
|
||||||
|
RiffChunkHeader riff_chunk_header;
|
||||||
|
ChunkHeader chunk_header;
|
||||||
|
@@ -140,6 +140,11 @@ int ParseRiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpack
|
||||||
|
else if (!strncmp (chunk_header.ckID, "fmt ", 4)) { // if it's the format chunk, we want to get some info out of there and
|
||||||
|
int supported = TRUE, format; // make sure it's a .wav file we can handle
|
||||||
|
|
||||||
|
+ if (format_chunk++) {
|
||||||
|
+ error_line ("%s is not a valid .WAV file!", infilename);
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (chunk_header.ckSize < 16 || chunk_header.ckSize > sizeof (WaveHeader) ||
|
||||||
|
!DoReadFile (infile, &WaveHeader, chunk_header.ckSize, &bcount) ||
|
||||||
|
bcount != chunk_header.ckSize) {
|
||||||
|
diff --git a/cli/wave64.c b/cli/wave64.c
|
||||||
|
index fa928a0..0388dc7 100644
|
||||||
|
--- a/cli/wave64.c
|
||||||
|
+++ b/cli/wave64.c
|
||||||
|
@@ -53,6 +53,7 @@ int ParseWave64HeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpa
|
||||||
|
Wave64ChunkHeader chunk_header;
|
||||||
|
Wave64FileHeader filehdr;
|
||||||
|
WaveHeader WaveHeader;
|
||||||
|
+ int format_chunk = 0;
|
||||||
|
uint32_t bcount;
|
||||||
|
|
||||||
|
infilesize = DoGetFileSize (infile);
|
||||||
|
@@ -104,6 +105,11 @@ int ParseWave64HeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpa
|
||||||
|
if (!memcmp (chunk_header.ckID, fmt_guid, sizeof (fmt_guid))) {
|
||||||
|
int supported = TRUE, format;
|
||||||
|
|
||||||
|
+ if (format_chunk++) {
|
||||||
|
+ error_line ("%s is not a valid .W64 file!", infilename);
|
||||||
|
+ return WAVPACK_SOFT_ERROR;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
chunk_header.ckSize = (chunk_header.ckSize + 7) & ~7L;
|
||||||
|
|
||||||
|
if (chunk_header.ckSize < 16 || chunk_header.ckSize > sizeof (WaveHeader) ||
|
||||||
|
--
|
||||||
|
2.14.3
|
||||||
|
|
|
@ -0,0 +1,200 @@
|
||||||
|
Name: wavpack
|
||||||
|
Summary: A completely open audiocodec
|
||||||
|
Version: 5.1.0
|
||||||
|
Release: 9%{?dist}
|
||||||
|
License: BSD
|
||||||
|
Group: Applications/Multimedia
|
||||||
|
Url: http://www.wavpack.com/
|
||||||
|
Source: http://www.wavpack.com/%{name}-%{version}.tar.bz2
|
||||||
|
Patch1: wavpack-0001-issue-27-do-not-overwrite-stack-on-corrupt-RF64-file.patch
|
||||||
|
Patch2: wavpack-0002-issue-28-do-not-overwrite-heap-on-corrupt-DSDIFF-fil.patch
|
||||||
|
Patch3: wavpack-0003-issue-28-fix-buffer-overflows-and-bad-allocs-on-corr.patch
|
||||||
|
Patch4: wavpack-0004-issue-33-sanitize-size-of-unknown-chunks-before-mall.patch
|
||||||
|
Patch5: wavpack-0005-issue-30-issue-31-issue-32-no-multiple-format-chunks.patch
|
||||||
|
# For autoreconf
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: libtool
|
||||||
|
|
||||||
|
%description
|
||||||
|
WavPack is a completely open audio compression format providing lossless,
|
||||||
|
high-quality lossy, and a unique hybrid compression mode. Although the
|
||||||
|
technology is loosely based on previous versions of WavPack, the new
|
||||||
|
version 4 format has been designed from the ground up to offer unparalleled
|
||||||
|
performance and functionality.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: WavPack - development files
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Files needed for developing apps using wavpack
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -ivf
|
||||||
|
# Disable assembly optimizations to avoid gaps in annobin coverage
|
||||||
|
%configure --disable-static \
|
||||||
|
--disable-asm
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=%{buildroot} install
|
||||||
|
rm -f %{buildroot}/%{_libdir}/*.la
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libdir}/libwavpack.so.*
|
||||||
|
%{_mandir}/man1/wavpack.1*
|
||||||
|
%{_mandir}/man1/wvgain.1*
|
||||||
|
%{_mandir}/man1/wvunpack.1*
|
||||||
|
%{_mandir}/man1/wvtag.1.*
|
||||||
|
%doc AUTHORS COPYING
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/pkgconfig/*
|
||||||
|
%{_libdir}/libwavpack.so
|
||||||
|
%doc ChangeLog README
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 20 2018 Miroslav Lichvar <mlichvar@redhat.com> - 5.1.0-9
|
||||||
|
- Disable assembly optimizations to avoid gaps in annobin coverage (#1630638)
|
||||||
|
|
||||||
|
* Tue May 22 2018 Miroslav Lichvar <mlichvar@redhat.com> - 5.1.0-8
|
||||||
|
- Fix for CVE-2018-10536, CVE-2018-10537, CVE-2018-10538, CVE-2018-10539,
|
||||||
|
CVE-2018-10540
|
||||||
|
|
||||||
|
* Tue Feb 20 2018 Peter Lemenkov <lemenkov@gmail.com> - 5.1.0-7
|
||||||
|
- Fix for CVE-2018-6767, CVE-2018-7253, and two more GH issues
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.1.0-5
|
||||||
|
- Switch to %%ldconfig_scriptlets
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 01 2017 Sérgio Basto <sergio@serjux.com> - 5.1.0-1
|
||||||
|
- Update wavpack to 5.1.0
|
||||||
|
|
||||||
|
* Thu Apr 21 2016 Sérgio Basto <sergio@serjux.com> - 4.80.0-1
|
||||||
|
- Update wavpack to 4.80.0
|
||||||
|
|
||||||
|
* Mon Mar 28 2016 Sérgio Basto <sergio@serjux.com> - 4.75.2-1
|
||||||
|
- Update to 4.75.2
|
||||||
|
|
||||||
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.70.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.70.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 4.70.0-4
|
||||||
|
- Rebuilt for Fedora 23 Change
|
||||||
|
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
||||||
|
|
||||||
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.70.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.70.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Feb 17 2014 Peter Lemenkov <lemenkov@gmail.com> - 4.70.0-1
|
||||||
|
- Ver. 4.70.0
|
||||||
|
|
||||||
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.60.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jul 21 2013 Peter Lemenkov <lemenkov@gmail.com> - 4.60.1-7
|
||||||
|
- Reconfigure to allow building on AArch64
|
||||||
|
- Cleanup spec-file
|
||||||
|
|
||||||
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.60.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 3 2013 Miroslav Lichvar <mlichvar@redhat.com> 4.60.1-5
|
||||||
|
- Fix -Wstrict-aliasing compiler warnings
|
||||||
|
|
||||||
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.60.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.60.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.60.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 9 2011 Peter Lemenkov <lemenkov@gmail.com> 4.60.1-1
|
||||||
|
- Version 4.60.1 (bugfix release)
|
||||||
|
- Added man-pages
|
||||||
|
- The only patch was rebased
|
||||||
|
- Small cosmetic spec-file cleanups
|
||||||
|
|
||||||
|
* Mon Sep 28 2009 Peter Lemenkov <lemenkov@gmail.com> 4.60-1
|
||||||
|
- Version 4.60
|
||||||
|
|
||||||
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.50.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.50.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Aug 30 2008 Peter Lemenkov <lemenkov@gmail.com> 4.50.1-2
|
||||||
|
- Fixes to meet the Fedora Packaging Guidelines
|
||||||
|
|
||||||
|
* Sun Aug 24 2008 Peter Lemenkov <lemenkov@gmail.com> 4.50.1-1
|
||||||
|
- Version 4.50.1
|
||||||
|
|
||||||
|
* Wed Jun 18 2008 Peter Lemenkov <lemenkov@gmail.com> 4.50-1
|
||||||
|
- Version 4.50
|
||||||
|
|
||||||
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.41-2
|
||||||
|
- Autorebuild for GCC 4.3
|
||||||
|
|
||||||
|
* Sat May 12 2007 Peter Lemenkov <lemenkov@gmail.com> 4.41-1
|
||||||
|
- Version 4.41
|
||||||
|
- Removed unnecessary --with-pic
|
||||||
|
|
||||||
|
* Fri Dec 15 2006 Peter Lemenkov <lemenkov@gmail.com> 4.40-1.1
|
||||||
|
- Rebuild
|
||||||
|
|
||||||
|
* Fri Dec 15 2006 Peter Lemenkov <lemenkov@gmail.com> 4.40-1
|
||||||
|
- Version 4.40
|
||||||
|
|
||||||
|
* Tue Sep 12 2006 Peter Lemenkov <lemenkov@gmail.com> 4.32-3%{?dist}
|
||||||
|
- Rebuild for FC6
|
||||||
|
|
||||||
|
* Sat Jul 01 2006 Peter Lemenkov <lemenkov@newmail.ru> 4.32-2%{?dist}
|
||||||
|
- force PIC-only code
|
||||||
|
|
||||||
|
* Wed Jun 28 2006 Peter Lemenkov <lemenkov@newmail.ru> 4.32-1%{?dist}
|
||||||
|
- Version 4.32
|
||||||
|
|
||||||
|
* Thu Mar 30 2006 Peter Lemenkov <lemenkov@newmail.ru> 4.31-2%{?dist}
|
||||||
|
- rebuild
|
||||||
|
|
||||||
|
* Sat Jan 07 2006 Peter Lemenkov <lemenkov@newmail.ru> 4.31-1
|
||||||
|
- Fixed several issues with wavpack.pc.in
|
||||||
|
- Cosmetic fixes.
|
||||||
|
- Version 4.31
|
||||||
|
|
||||||
|
* Sun Nov 13 2005 Peter Lemenkov <lemenkov@newmail.ru> 4.3-1
|
||||||
|
- Initial build for FC-Extras
|
||||||
|
- Version 4.3
|
||||||
|
|
Loading…
Reference in New Issue