Registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.

About project

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.

In the default lossless mode WavPack acts just like a WinZip
compressor for audio files. However, unlike MP3 or WMA encoding which
can affect the sound quality, not a single bit of the original
information is lost, so there's no chance of degradation. This makes
lossless mode ideal for archiving audio material or any other
situation where quality is paramount. The compression ratio depends on
the source material, but generally is between 30% and 70%.

The hybrid mode provides all the advantages of lossless compression
with an additional bonus. Instead of creating a single file, this mode
creates both a relatively small, high-quality lossy file that can be
used all by itself, and a "correction" file that (when combined with
the lossy file) provides full lossless restoration. For some users
this means never having to choose between lossless and lossy
compression!

Last commit

avatar
ilfat has added 4921ba3342
Security fixes for CVE-2020-35738

Files in

100644 | 25 lines (21 sloc) | 862 Bytes
From 63f3ec70129843dd64e11aa4c21c4a1cf00c9f1c Mon Sep 17 00:00:00 2001
From: David Bryant <david@wavpack.com>
Date: Mon, 28 Dec 2020 22:42:14 -0800
Subject: [PATCH] issue #91: filter out invalid negative sample rates to
 prevent encoder crash

---
 src/pack_utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pack_utils.c b/src/pack_utils.c
index 6ea34ced..17d93816 100644
--- a/src/pack_utils.c
+++ b/src/pack_utils.c
@@ -195,8 +195,8 @@ int WavpackSetConfiguration64 (WavpackContext *wpc, WavpackConfig *config, int64
     int num_chans = config->num_channels;
     int i;
 
-    if (!config->sample_rate) {
-        strcpy (wpc->error_message, "sample rate cannot be zero!");
+    if (config->sample_rate <= 0) {
+        strcpy (wpc->error_message, "sample rate cannot be zero or negative!");
         return FALSE;
     }