debian/0000775000000000000000000000000013363666352007205 5ustar debian/sfconvert.10000664000000000000000000000551512142125346011271 0ustar .\" sfconvert - convert between various audio formats .\" Copyright (c) 2001 Daniel Kobras .\" .\" This manual page is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc.,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .\" .\" This manual page is written especially for Debian Linux. .\" .TH SFCONVERT 1 "March 2001" "Debian Project" "Debian GNU/Linux" .SH NAME sfconvert \- convert between various audio formats .SH SYNOPSIS \fBsfconvert\fR \fIinfile\fR \fIoutfile\fR [ \fIoptions ...\fR ] [ \fIoutput keywords ...\fR ] .SH DESCRIPTION The .B sfconvert tool can be used to convert audio files from one audio format to another. The files' audio formats have to be supported by .BR libaudiofile . .SH OPTIONS The following keywords specify the format of the output sound file: .TP \fBbyteorder\fR \fIe\fR Desired endianness of output sample data. \fIe\fR may be one of \fBbig\fR or \fBlittle\fR. .TP \fBchannels\fR \fIn\fR Number of output channels. \fIn\fR is \fB1\fR for mono, and \fB2\fR for stereo files. .TP \fBformat\fR \fIf\fR Audio format of output file. \fIf\fR has to be one of the currently supported formats: \fBaiff\fR (Audio Interchange File Format), \fBaifc\fR (AIFF-C File Format), \fBnext\fR (NeXT/Sun Format), \fBwave\fR (MS RIFF WAVE Format), \fBbicsf\fR (Berkeley/IRCAM/CARL Sound File Format), \fBavr\fR (Audio Visual Research File Format), \fBiff\fR (Amiga IFF/8SVX Sound File Format), or \fBnist\fR (NIST SPHERE File Format). .TP \fBinteger\fR \fIn\fR \fIs\fR Produce integer samples. \fIn\fR specifies the width of individual samples in bits, \fIs\fR yields the encoding and may be one of \fB2scomp\fR (2's complement signed data), or \fBunsigned\fR (unsigned data). The \fBinteger\fR and \fBfloat\fR options (see below) are mutually exclusive. .TP \fBfloat\fR \fIm\fR Produce floating point samples with a maximum amplitude of \fIm\fR (usually \fB1.0\fR). This options may not be used together with option \fBinteger\fR. .SH SEE ALSO .BR sfinfo (1). .SH AUTHOR .B sfconvert was written by Michael Pruett . .PP This manual page was written by Daniel Kobras for the Debian GNU/Linux system (but may be used by others). It is based on the sfconvert plain text documentation as distributed with audiofile. debian/watch0000664000000000000000000000014412142125346010220 0ustar version=3 http://www.68k.org/~michael/audiofile/ \ http://audiofile.68k.org/audiofile-(.*)\.tar\.gz debian/source/0000775000000000000000000000000012142125346010470 5ustar debian/source/format0000664000000000000000000000001412142125346011676 0ustar 3.0 (quilt) debian/audiofile-tools.install0000664000000000000000000000001212142125346013650 0ustar usr/bin/* debian/compat0000664000000000000000000000000212142125346010366 0ustar 9 debian/audiofile-tools.manpages0000664000000000000000000000004412142125346014002 0ustar debian/sfconvert.1 debian/sfinfo.1 debian/libaudiofile-dev.install0000664000000000000000000000010612142125351013755 0ustar usr/include/* usr/lib/*/*.so usr/lib/*/pkgconfig/* usr/share/man/man3 debian/patches/0000775000000000000000000000000013363662040010622 5ustar debian/patches/09_Actually-fail-when-error-occurs-in-parseFormat.patch0000664000000000000000000000237013064257022023111 0ustar From: Antonio Larrosa Date: Mon, 6 Mar 2017 18:59:26 +0100 Subject: Actually fail when error occurs in parseFormat When there's an unsupported number of bits per sample or an invalid number of samples per block, don't only print an error message using the error handler, but actually stop parsing the file. This fixes #35 (also reported at https://bugzilla.opensuse.org/show_bug.cgi?id=1026983 and https://blogs.gentoo.org/ago/2017/02/20/audiofile-heap-based-buffer-overflow-in-imadecodeblockwave-ima-cpp/ ) --- libaudiofile/WAVE.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp index 0fc48e8..d04b796 100644 --- a/libaudiofile/WAVE.cpp +++ b/libaudiofile/WAVE.cpp @@ -332,6 +332,7 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size) { _af_error(AF_BAD_NOT_IMPLEMENTED, "IMA ADPCM compression supports only 4 bits per sample"); + return AF_FAIL; } int bytesPerBlock = (samplesPerBlock + 14) / 8 * 4 * channelCount; @@ -339,6 +340,7 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size) { _af_error(AF_BAD_CODEC_CONFIG, "Invalid samples per block for IMA ADPCM compression"); + return AF_FAIL; } track->f.sampleWidth = 16; debian/patches/06_Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch0000664000000000000000000000717313064257022024223 0ustar From: Antonio Larrosa Date: Mon, 6 Mar 2017 13:43:53 +0100 Subject: Check for multiplication overflow in MSADPCM decodeSample Check for multiplication overflow (using __builtin_mul_overflow if available) in MSADPCM.cpp decodeSample and return an empty decoded block if an error occurs. This fixes the 00193-audiofile-signintoverflow-MSADPCM case of #41 --- libaudiofile/modules/BlockCodec.cpp | 5 ++-- libaudiofile/modules/MSADPCM.cpp | 47 +++++++++++++++++++++++++++++++++---- 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/libaudiofile/modules/BlockCodec.cpp b/libaudiofile/modules/BlockCodec.cpp index 45925e8..4731be1 100644 --- a/libaudiofile/modules/BlockCodec.cpp +++ b/libaudiofile/modules/BlockCodec.cpp @@ -52,8 +52,9 @@ void BlockCodec::runPull() // Decompress into m_outChunk. for (int i=0; i(m_inChunk->buffer) + i * m_bytesPerPacket, - static_cast(m_outChunk->buffer) + i * m_framesPerPacket * m_track->f.channelCount); + if (decodeBlock(static_cast(m_inChunk->buffer) + i * m_bytesPerPacket, + static_cast(m_outChunk->buffer) + i * m_framesPerPacket * m_track->f.channelCount)==0) + break; framesRead += m_framesPerPacket; } diff --git a/libaudiofile/modules/MSADPCM.cpp b/libaudiofile/modules/MSADPCM.cpp index 8ea3c85..ef9c38c 100644 --- a/libaudiofile/modules/MSADPCM.cpp +++ b/libaudiofile/modules/MSADPCM.cpp @@ -101,24 +101,60 @@ static const int16_t adaptationTable[] = 768, 614, 512, 409, 307, 230, 230, 230 }; +int firstBitSet(int x) +{ + int position=0; + while (x!=0) + { + x>>=1; + ++position; + } + return position; +} + +#ifndef __has_builtin +#define __has_builtin(x) 0 +#endif + +int multiplyCheckOverflow(int a, int b, int *result) +{ +#if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow)) + return __builtin_mul_overflow(a, b, result); +#else + if (firstBitSet(a)+firstBitSet(b)>31) // int is signed, so we can't use 32 bits + return true; + *result = a * b; + return false; +#endif +} + + // Compute a linear PCM value from the given differential coded value. static int16_t decodeSample(ms_adpcm_state &state, - uint8_t code, const int16_t *coefficient) + uint8_t code, const int16_t *coefficient, bool *ok=NULL) { int linearSample = (state.sample1 * coefficient[0] + state.sample2 * coefficient[1]) >> 8; + int delta; linearSample += ((code & 0x08) ? (code - 0x10) : code) * state.delta; linearSample = clamp(linearSample, MIN_INT16, MAX_INT16); - int delta = (state.delta * adaptationTable[code]) >> 8; + if (multiplyCheckOverflow(state.delta, adaptationTable[code], &delta)) + { + if (ok) *ok=false; + _af_error(AF_BAD_COMPRESSION, "Error decoding sample"); + return 0; + } + delta >>= 8; if (delta < 16) delta = 16; state.delta = delta; state.sample2 = state.sample1; state.sample1 = linearSample; + if (ok) *ok=true; return static_cast(linearSample); } @@ -212,13 +248,16 @@ int MSADPCM::decodeBlock(const uint8_t *encoded, int16_t *decoded) { uint8_t code; int16_t newSample; + bool ok; code = *encoded >> 4; - newSample = decodeSample(*state[0], code, coefficient[0]); + newSample = decodeSample(*state[0], code, coefficient[0], &ok); + if (!ok) return 0; *decoded++ = newSample; code = *encoded & 0x0f; - newSample = decodeSample(*state[1], code, coefficient[1]); + newSample = decodeSample(*state[1], code, coefficient[1], &ok); + if (!ok) return 0; *decoded++ = newSample; encoded++; debian/patches/series0000664000000000000000000000072613363662040012044 0ustar CVE-2015-7747.patch 04_clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch 05_Always-check-the-number-of-coefficients.patch 06_Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch 07_Check-for-multiplication-overflow-in-sfconvert.patch 08_Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch 09_Actually-fail-when-error-occurs-in-parseFormat.patch 10_Check-for-division-by-zero-in-BlockCodec-runPull.patch CVE-2018-13440.patch CVE-2018-17095.patch debian/patches/CVE-2015-7747.patch0000664000000000000000000001143312611434663013260 0ustar Description: fix buffer overflow when changing both sample format and number of channels Origin: backport, https://github.com/mpruett/audiofile/pull/25 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801102 Index: audiofile-0.3.6/libaudiofile/modules/ModuleState.cpp =================================================================== --- audiofile-0.3.6.orig/libaudiofile/modules/ModuleState.cpp 2015-10-20 08:00:58.036128202 -0400 +++ audiofile-0.3.6/libaudiofile/modules/ModuleState.cpp 2015-10-20 08:00:58.036128202 -0400 @@ -402,7 +402,7 @@ addModule(new Transform(outfc, in.pcm, out.pcm)); if (in.channelCount != out.channelCount) - addModule(new ApplyChannelMatrix(infc, isReading, + addModule(new ApplyChannelMatrix(outfc, isReading, in.channelCount, out.channelCount, in.pcm.minClip, in.pcm.maxClip, track->channelMatrix)); Index: audiofile-0.3.6/test/Makefile.am =================================================================== --- audiofile-0.3.6.orig/test/Makefile.am 2015-10-20 08:00:58.036128202 -0400 +++ audiofile-0.3.6/test/Makefile.am 2015-10-20 08:00:58.036128202 -0400 @@ -26,6 +26,7 @@ VirtualFile \ floatto24 \ query2 \ + sixteen-stereo-to-eight-mono \ sixteen-to-eight \ testchannelmatrix \ testdouble \ @@ -139,6 +140,7 @@ printmarkers_LDADD = $(LIBAUDIOFILE) -lm sixteen_to_eight_SOURCES = sixteen-to-eight.c TestUtilities.cpp TestUtilities.h +sixteen_stereo_to_eight_mono_SOURCES = sixteen-stereo-to-eight-mono.c TestUtilities.cpp TestUtilities.h testchannelmatrix_SOURCES = testchannelmatrix.c TestUtilities.cpp TestUtilities.h Index: audiofile-0.3.6/test/sixteen-stereo-to-eight-mono.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ audiofile-0.3.6/test/sixteen-stereo-to-eight-mono.c 2015-10-20 08:33:57.512286416 -0400 @@ -0,0 +1,117 @@ +/* + Audio File Library + + Copyright 2000, Silicon Graphics, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + +/* + sixteen-stereo-to-eight-mono.c + + This program tests the conversion from 2-channel 16-bit integers to + 1-channel 8-bit integers. +*/ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include +#include +#include + +#include + +#include "TestUtilities.h" + +int main (int argc, char **argv) +{ + AFfilehandle file; + AFfilesetup setup; + int16_t frames16[] = {14298, 392, 3923, -683, 958, -1921}; + int8_t frames8[] = {28, 6, -2}; + int i, frameCount = 3; + int8_t byte; + AFframecount result; + + setup = afNewFileSetup(); + + afInitFileFormat(setup, AF_FILE_WAVE); + + afInitSampleFormat(setup, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 16); + afInitChannels(setup, AF_DEFAULT_TRACK, 2); + + char testFileName[PATH_MAX]; + if (!createTemporaryFile("sixteen-to-eight", testFileName)) + { + fprintf(stderr, "Could not create temporary file.\n"); + exit(EXIT_FAILURE); + } + + file = afOpenFile(testFileName, "w", setup); + if (file == AF_NULL_FILEHANDLE) + { + fprintf(stderr, "could not open file for writing\n"); + exit(EXIT_FAILURE); + } + + afFreeFileSetup(setup); + + afWriteFrames(file, AF_DEFAULT_TRACK, frames16, frameCount); + + afCloseFile(file); + + file = afOpenFile(testFileName, "r", AF_NULL_FILESETUP); + if (file == AF_NULL_FILEHANDLE) + { + fprintf(stderr, "could not open file for reading\n"); + exit(EXIT_FAILURE); + } + + afSetVirtualSampleFormat(file, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 8); + afSetVirtualChannels(file, AF_DEFAULT_TRACK, 1); + + for (i=0; i Date: Fri, 10 Mar 2017 15:40:02 +0100 Subject: Fix signature of multiplyCheckOverflow. It returns a bool, not an int --- libaudiofile/modules/MSADPCM.cpp | 2 +- sfcommands/sfconvert.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libaudiofile/modules/MSADPCM.cpp b/libaudiofile/modules/MSADPCM.cpp index ef9c38c..d8c9553 100644 --- a/libaudiofile/modules/MSADPCM.cpp +++ b/libaudiofile/modules/MSADPCM.cpp @@ -116,7 +116,7 @@ int firstBitSet(int x) #define __has_builtin(x) 0 #endif -int multiplyCheckOverflow(int a, int b, int *result) +bool multiplyCheckOverflow(int a, int b, int *result) { #if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow)) return __builtin_mul_overflow(a, b, result); diff --git a/sfcommands/sfconvert.c b/sfcommands/sfconvert.c index 970a3e4..367f7a5 100644 --- a/sfcommands/sfconvert.c +++ b/sfcommands/sfconvert.c @@ -60,7 +60,7 @@ int firstBitSet(int x) #define __has_builtin(x) 0 #endif -int multiplyCheckOverflow(int a, int b, int *result) +bool multiplyCheckOverflow(int a, int b, int *result) { #if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow)) return __builtin_mul_overflow(a, b, result); debian/patches/07_Check-for-multiplication-overflow-in-sfconvert.patch0000664000000000000000000000366713064257022023273 0ustar From: Antonio Larrosa Date: Mon, 6 Mar 2017 13:54:52 +0100 Subject: Check for multiplication overflow in sfconvert Checks that a multiplication doesn't overflow when calculating the buffer size, and if it overflows, reduce the buffer size instead of failing. This fixes the 00192-audiofile-signintoverflow-sfconvert case in #41 --- sfcommands/sfconvert.c | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/sfcommands/sfconvert.c b/sfcommands/sfconvert.c index 80a1bc4..970a3e4 100644 --- a/sfcommands/sfconvert.c +++ b/sfcommands/sfconvert.c @@ -45,6 +45,33 @@ void printusage (void); void usageerror (void); bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid); +int firstBitSet(int x) +{ + int position=0; + while (x!=0) + { + x>>=1; + ++position; + } + return position; +} + +#ifndef __has_builtin +#define __has_builtin(x) 0 +#endif + +int multiplyCheckOverflow(int a, int b, int *result) +{ +#if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow)) + return __builtin_mul_overflow(a, b, result); +#else + if (firstBitSet(a)+firstBitSet(b)>31) // int is signed, so we can't use 32 bits + return true; + *result = a * b; + return false; +#endif +} + int main (int argc, char **argv) { if (argc == 2) @@ -323,8 +350,11 @@ bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid) { int frameSize = afGetVirtualFrameSize(infile, trackid, 1); - const int kBufferFrameCount = 65536; - void *buffer = malloc(kBufferFrameCount * frameSize); + int kBufferFrameCount = 65536; + int bufferSize; + while (multiplyCheckOverflow(kBufferFrameCount, frameSize, &bufferSize)) + kBufferFrameCount /= 2; + void *buffer = malloc(bufferSize); AFframecount totalFrames = afGetFrameCount(infile, AF_DEFAULT_TRACK); AFframecount totalFramesWritten = 0; debian/patches/04_clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch0000664000000000000000000000231213064257022023603 0ustar From: Antonio Larrosa Date: Mon, 6 Mar 2017 18:02:31 +0100 Subject: clamp index values to fix index overflow in IMA.cpp This fixes #33 (also reported at https://bugzilla.opensuse.org/show_bug.cgi?id=1026981 and https://blogs.gentoo.org/ago/2017/02/20/audiofile-global-buffer-overflow-in-decodesample-ima-cpp/) --- libaudiofile/modules/IMA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libaudiofile/modules/IMA.cpp b/libaudiofile/modules/IMA.cpp index 7476d44..df4aad6 100644 --- a/libaudiofile/modules/IMA.cpp +++ b/libaudiofile/modules/IMA.cpp @@ -169,7 +169,7 @@ int IMA::decodeBlockWAVE(const uint8_t *encoded, int16_t *decoded) if (encoded[1] & 0x80) m_adpcmState[c].previousValue -= 0x10000; - m_adpcmState[c].index = encoded[2]; + m_adpcmState[c].index = clamp(encoded[2], 0, 88); *decoded++ = m_adpcmState[c].previousValue; @@ -210,7 +210,7 @@ int IMA::decodeBlockQT(const uint8_t *encoded, int16_t *decoded) predictor -= 0x10000; state.previousValue = clamp(predictor, MIN_INT16, MAX_INT16); - state.index = encoded[1] & 0x7f; + state.index = clamp(encoded[1] & 0x7f, 0, 88); encoded += 2; for (int n=0; n Date: Thu, 9 Mar 2017 10:21:18 +0100 Subject: Check for division by zero in BlockCodec::runPull --- libaudiofile/modules/BlockCodec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libaudiofile/modules/BlockCodec.cpp b/libaudiofile/modules/BlockCodec.cpp index 4731be1..eb2fb4d 100644 --- a/libaudiofile/modules/BlockCodec.cpp +++ b/libaudiofile/modules/BlockCodec.cpp @@ -47,7 +47,7 @@ void BlockCodec::runPull() // Read the compressed data. ssize_t bytesRead = read(m_inChunk->buffer, m_bytesPerPacket * blockCount); - int blocksRead = bytesRead >= 0 ? bytesRead / m_bytesPerPacket : 0; + int blocksRead = (bytesRead >= 0 && m_bytesPerPacket > 0) ? bytesRead / m_bytesPerPacket : 0; // Decompress into m_outChunk. for (int i=0; i Date: Thu, 27 Sep 2018 10:48:45 +0200 Subject: [PATCH] ModuleState: handle compress/decompress init failure When the unit initcompress or initdecompress function fails, m_fileModule is NULL. Return AF_FAIL in that case instead of causing NULL pointer dereferences later. Fixes #49 --- libaudiofile/modules/ModuleState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libaudiofile/modules/ModuleState.cpp b/libaudiofile/modules/ModuleState.cpp index 0c29d7a..070fd9b 100644 --- a/libaudiofile/modules/ModuleState.cpp +++ b/libaudiofile/modules/ModuleState.cpp @@ -75,6 +75,9 @@ status ModuleState::initFileModule(AFfilehandle file, Track *track) m_fileModule = unit->initcompress(track, file->m_fh, file->m_seekok, file->m_fileFormat == AF_FILE_RAWDATA, &chunkFrames); + if (!m_fileModule) + return AF_FAIL; + if (unit->needsRebuffer) { assert(unit->nativeSampleFormat == AF_SAMPFMT_TWOSCOMP); debian/patches/CVE-2018-17095.patch0000664000000000000000000000151513363662040013335 0ustar From 822b732fd31ffcb78f6920001e9b1fbd815fa712 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 27 Sep 2018 12:11:12 +0200 Subject: [PATCH] SimpleModule: set output chunk framecount after pull After pulling the data, set the output chunk to the amount of frames we pulled so that the next module in the chain has the correct frame count. Fixes #50 and #51 --- libaudiofile/modules/SimpleModule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libaudiofile/modules/SimpleModule.cpp b/libaudiofile/modules/SimpleModule.cpp index 2bae1eb..e87932c 100644 --- a/libaudiofile/modules/SimpleModule.cpp +++ b/libaudiofile/modules/SimpleModule.cpp @@ -26,6 +26,7 @@ void SimpleModule::runPull() { pull(m_outChunk->frameCount); + m_outChunk->frameCount = m_inChunk->frameCount; run(*m_inChunk, *m_outChunk); } debian/patches/05_Always-check-the-number-of-coefficients.patch0000664000000000000000000000166313064257022021573 0ustar From: Antonio Larrosa Date: Mon, 6 Mar 2017 12:51:22 +0100 Subject: Always check the number of coefficients When building the library with NDEBUG, asserts are eliminated so it's better to always check that the number of coefficients is inside the array range. This fixes the 00191-audiofile-indexoob issue in #41 --- libaudiofile/WAVE.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp index 9dd8511..0fc48e8 100644 --- a/libaudiofile/WAVE.cpp +++ b/libaudiofile/WAVE.cpp @@ -281,6 +281,12 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size) /* numCoefficients should be at least 7. */ assert(numCoefficients >= 7 && numCoefficients <= 255); + if (numCoefficients < 7 || numCoefficients > 255) + { + _af_error(AF_BAD_HEADER, + "Bad number of coefficients"); + return AF_FAIL; + } m_msadpcmNumCoefficients = numCoefficients; debian/control0000664000000000000000000000514612611434663010607 0ustar Source: audiofile Section: libs Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Multimedia Maintainers Uploaders: Alessio Treglia Build-Depends: debhelper (>= 9), dh-autoreconf, libasound2-dev, libflac-dev, pkg-config Standards-Version: 3.9.4 Homepage: http://audiofile.68k.org/ Vcs-Git: git://anonscm.debian.org/pkg-multimedia/audiofile.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/audiofile.git Package: audiofile-tools Section: utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Breaks: libaudiofile-dev (<= 0.3.3-1) Replaces: libaudiofile-dev (<= 0.3.3-1) Description: sfinfo and sfconvert tools The audiofile library allows the processing of audio data to and from audio files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS, and raw data). . This package contains the sfinfo and sfconvert tools. Package: libaudiofile-dev Section: libdevel Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: libaudiofile1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Recommends: pkg-config Description: Open-source version of SGI's audiofile library (header files) The audiofile library allows the processing of audio data to and from audio files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS, and raw data). . This package contains the development headers and library files needed to compile programs using libaudiofile, as well as example programs for identifying and converting audio files. Package: libaudiofile1 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Description: Open-source version of SGI's audiofile library The audiofile library allows the processing of audio data to and from audio files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS, and raw data). . This package contains the library needed to run executables using libaudiofile. Package: libaudiofile-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Depends: libaudiofile1 (= ${binary:Version}), ${misc:Depends} Description: Open-source version of SGI's audiofile library (debug) The audiofile library allows the processing of audio data to and from audio files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS, and raw data). . This package contains debugging symbols for the audiofile shared library. Tools like gdb and ltrace make use of these symbols. debian/changelog0000664000000000000000000004556113363662555011073 0ustar audiofile (0.3.6-2ubuntu0.14.04.3) trusty-security; urgency=medium * SECURITY UPDATE: Denial of service - debian/patches/CVE-2018-13440.patch: fix in libaudiofile/modules/ModuleState.cpp. - CVE-2018-13440 * SECURITY UPDATE: Heap-based buffer overflow - debian/patches/CVE-2018-17095.patch: fix in libaudiofile/modules/SimpleModule.cpp. - CVE-2018-17095 -- Leonidas S. Barbosa Tue, 23 Oct 2018 15:12:20 -0300 audiofile (0.3.6-2ubuntu0.14.04.2) trusty-security; urgency=high * SECURITY UPDATE: multiple vulnerabilities (LP: #1674005) - Apply patches from Debian 0.3.6-4: + 04_clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch + 05_Always-check-the-number-of-coefficients.patch + 06_Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch + 07_Check-for-multiplication-overflow-in-sfconvert.patch + 08_Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch + 09_Actually-fail-when-error-occurs-in-parseFormat.patch + 10_Check-for-division-by-zero-in-BlockCodec-runPull.patch - CVE-2017-6827, CVE-2017-6828, CVE-2017-6829, CVE-2017-6830, CVE-2017-6831, CVE-2017-6832, CVE-2017-6833, CVE-2017-6834, CVE-2017-6835, CVE-2017-6836, CVE-2017-6837, CVE-2017-6838, CVE-2017-6839 -- Jeremy Bicha Thu, 16 Mar 2017 21:43:45 +0100 audiofile (0.3.6-2ubuntu0.14.04.1) trusty-security; urgency=medium * SECURITY UPDATE: buffer overflow when changing both sample format and number of channels (LP: #1502721) - debian/patches/CVE-2015-7747.patch: don't corrupt files in libaudiofile/modules/ModuleState.cpp, added test to test/Makefile.am, test/sixteen-stereo-to-eight-mono.c. - CVE-2015-7747 -- Marc Deslauriers Tue, 20 Oct 2015 07:57:26 -0400 audiofile (0.3.6-2) unstable; urgency=low * Upload to unstable. -- Alessio Treglia Tue, 07 May 2013 09:19:52 +0200 audiofile (0.3.6-1) experimental; urgency=low * New upstream release: - Implement FLAC and ALAC encoding and decoding. - Update license to LGPL 2.1 * Build-depend on libflac-dev and pkg-config. * Install library manpages into the proper path /usr/share/man/man3. * Update debian/copyright. -- Alessio Treglia Fri, 08 Mar 2013 14:28:14 +0000 audiofile (0.3.5-1) experimental; urgency=low * New upstream release: - Implement IMA ADPCM encoding and decoding for AIFF-C, CAF, and WAVE files. - Implement Microsoft ADPCM encoding for WAVE files. - Fix calculation of IRCAM frame size. - Record marker comments in WAVE files. - Improve validation of compressed audio formats. - Add support for building without documentation. * Re-enable build of static libs. * Adjust debian/gbp.conf according to "experimental" setup. * Remove 0001-ftbfs_tmp_unique_fnames.patch, applied upstream. * Refresh debian/copyright. * Bump Standards. -- Alessio Treglia Sun, 10 Feb 2013 19:45:59 +0000 audiofile (0.3.4-2) unstable; urgency=low * Under certain conditions tests would fail as /tmp/test might not be writeable. Thanks to Giovanni Mascellani for the great work. (Closes: #687405) -- Alessio Treglia Sun, 14 Oct 2012 12:23:50 +0100 audiofile (0.3.4-1) unstable; urgency=low * New upstream release. * Bump requirement on DH 9. * Update debian/copyright to the machine-readable format. * Bump Standards. -- Alessio Treglia Tue, 01 May 2012 10:41:40 +0200 audiofile (0.3.3-3) unstable; urgency=low [ Paul Wise ] * Fix typo noticed by wald0: - debian/rules: override_dh_makehslibs -> override_dh_makeshlibs -- Alessio Treglia Mon, 20 Feb 2012 11:34:17 +0100 audiofile (0.3.3-2) unstable; urgency=low * Move sfinfo and sfconvert tools into a new audiofile-tools package; thanks to Jakub Wilk for having reported this (Closes: #656883). - The utilities provided by audiofile-tools are not needed by the shared library to work properly, so there's no need to set a Multi-Arch: foreign field. -- Alessio Treglia Sun, 22 Jan 2012 20:50:31 +0100 audiofile (0.3.3-1) unstable; urgency=low * Upload to unstable. * Remove debian/README.* files, which contain outdate information. * Remove audiofile-config's manpage, it is no longer provided. * Don't install TODO as -dev's doc file. -- Alessio Treglia Fri, 20 Jan 2012 21:43:29 +0100 audiofile (0.3.3-1~exp1) experimental; urgency=low * New upstream release. * SONAME bump. * Add pkg-config to libaudiofile-dev's Recommends field. * Move debugging symbols from libaudiofile0-dbg to unversioned libaudiofile-dbg. * Remove obsolete Conflicts/Replaces on libaudiofile0 (<= 0.2.3-4) from libaudiofile-dev's stanza. -- Alessio Treglia Thu, 12 Jan 2012 10:26:34 +0100 audiofile (0.3.2-1) experimental; urgency=low * New maintainer, thanks to Daniel Kobras for the great work. * New upstream stable release. * Update debian/watch. * Remove debian/patches, all patches are obsolete or adopted upstream. * Drop libaudiofile0.symbols, use dh_makeshlibs -V for now. * Drop audiofile.m4 as it's no longer provided. * Build-Depends on libasound2-dev to build the example program. * Don't provide static library anymore. * Add MultiArch support. (Closes: #651029) (LP: #900153) * Add ${shlibs:Depends} to the -DEV's Depends field. * Pass --enable-static=no to configure. * Update debian/copyright. * Enable parallel builds. -- Alessio Treglia Thu, 05 Jan 2012 13:03:34 +0100 audiofile (0.2.7-1) unstable; urgency=low * New maintainer. Thanks to Daniel Kobras for the great work done! * ACK NMU. * debian/*: wrap-and-sort * Update debian/watch. * Introduce Multi-Arch support. * Add shlibs:Depends to -DEV's Build-Depends field. -- Alessio Treglia Sun, 15 Jan 2012 00:07:07 +0100 audiofile (0.2.7-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release (Closes: #586686): - Fix decoding of multi-channel ADPCM WAVE files. - Reduce unshared data in library. - Fix handling of audio files with more than 2^24 frames. - Add support for writing double-precision floating-point WAVE files. - Add support for reading certain uncompressed AIFF-C files created by Mac OS X. - Write fact chunk in floating-point WAVE files. A big 'thank you!' goes to the upstream author Michael Pruett for the great help. * Switch packaging to source format 3.0 (quilt). * Switch to DH 7 short-form: - Add ${misc:Depends} to packages' Depends fields. * Convert patches to the quilt format and then: - 10_update_docs: adopted upstream. - 10_update_libtool: not needed anymore as DH's autotools_dev add-on is used now - 10_export_vfs: applied upstream. - 10_pack_real_char3: refresh'd. - 10_incorrect_wav_size: applied upstream. - 10_au_length_unspecified: refresh'd. - 10_support_nonstandard_aiffc: adopted upstream. - 10_sfinfo_no_options: refresh'd. - 10_sfconvert_add_nist_support: applied upstream. - 10_warning_fixes: applied upstream. - 10_m4_quoting_fix: applied upstream. - 10_include_audiofile_in_af_vfs: refresh'd. - 10_pkgconfig_privlibs: dropped to avoid FTBFS with new toolchain. - 10_float_size_calculation_fix: refresh'd. - 20_exports_vpath_fix{,up}: applied upstream. - 22_CVE-2008-5824: superseded upstream. * Strip unneeded *.la files from -DEV package. * Add symbols file. * Add watch file. * Add Homepage. * Improve libaudiofile0-dbg's short description, fix Lintian's duplicate-short-description warning. * Fix Lintian's "binary-control-field-duplicates-source field" warning. * Update debian/copyright. * Bump Standards. -- Alessio Treglia Thu, 25 Aug 2011 13:28:27 +0200 audiofile (0.2.6-8) unstable; urgency=low * Added patches: + [10_float_size_calculation_fix] New. Fix incorrect calculation of WAV sizes due to rounding errors. Patch thanks to Thomas Eschenbacher. Closes: #443888 * debian/compat, debian/rules: No longer set debhelper compat level from rules file. * debian/control: Move dbg package to section debug, priority extra. * debian/control: Replace Source-Version substitutions with binary:Version. * debian/control: Complies with version 3.8.3 of Debian policy. * debian/README.source: Refer to dpatch documentation. -- Daniel Kobras Sun, 06 Dec 2009 20:15:09 +0100 audiofile (0.2.6-7.1) unstable; urgency=medium * Non-maintainer upload by the Security Team. * CVE-2008-5824: Fix buffer overflow when decompressing MS ADPCM .wav files (closes: #510205). -- Stefan Fritsch Sat, 28 Nov 2009 15:41:28 +0100 audiofile (0.2.6-7) unstable; urgency=low * Added patches: + [20_exports_vpath_fix] + [21_exports_vpath_fixup] Add full path to symbol exports file to failure during VPATH builds. + [10_pkgconfig_privlibs] In pkgconfig file, strip libs section to minimal content and declare additional libraries as private. Closes: #374014 * debian/audiofile-config.1: Add note to man page that audiofile-config is deprecated in favour of pkg-config. * debian/control: Add new package libaudiofile0-dbg, containing debugging symbols. * debian/control: Raise minimum version of debhelper build dependency to 5. * debian/control: Complies with version 3.7.2 of Debian policy. * debian/rules: Build binaries in separate obj directory rather than in-tree. Fixes errors when rebuilding. Closes: #424108 * debian/rules: Raise debhelper compatibility level to 5 to enable proper support for debug packages. * debian/rules: Place stripped debugging symbols of libaudiofile0 in separate debug package. * debian/sfconvert.1, debian/sfinfo.1: Update list of supported file formats in man pages. Closes: #408847 -- Daniel Kobras Mon, 18 Jun 2007 22:49:46 +0200 audiofile (0.2.6-6) unstable; urgency=low * Added patches: [10_include_audiofile_in_af_vfs] New. af_vfs.h relies on audiofile.h being included already, so force the include. Closes: #300391 -- Daniel Kobras Sat, 19 Mar 2005 19:43:13 +0100 audiofile (0.2.6-5) unstable; urgency=low * Added patches: + [10_au_length_unspecified] New. Handle .au files with a length field of 0xffffffff (meaning unspecified). Closes: #264882 + [10_sfconvert_add_nist_support] New, pulled from upstream BK tree. Add support for converting to the NIST SPHERE file format. + [10_support_nonstandard_aiffc] New, pulled from upstream BK tree. Add support for reading nonstandard uncompressed AIFF-C files created by Mac OS X. -- Daniel Kobras Sat, 27 Nov 2004 22:06:57 +0100 audiofile (0.2.6-4) unstable; urgency=low * Added patches: + [10_m4_quoting_fix] New, pulled from upstream BK tree. Add a missing quote in audiofile.m4 to prevent breakage with automake 1.8. Closes: #254131 + [10_update_docs] New, pulled from upstream BK tree. Update documentation of API functions. * Updated patches: + [10_export_vfs] Replaced own version with upstream fix. * Removed patches: + [11_local_syms] Obsoleted by export_vfs update. -- Daniel Kobras Mon, 14 Jun 2004 12:46:11 +0200 audiofile (0.2.6-3) unstable; urgency=low * Added patches: + [10_pack_real_char3] New. Convince gcc on ARM to only use three bytes of storage for a certain struct. Fixes 24bit support and regressions on ARM. * Removed patches: + [20_verbose_test_output] Obsolete. -- Daniel Kobras Sun, 14 Mar 2004 01:45:04 +0100 audiofile (0.2.6-2) unstable; urgency=low * debian/rules: Make use of overridden CFLAGS. * Added patches: + [10_export_vfs] New. Use wildcards in exports file to ensure the complete namespace gets exported. Closes: #237336 + [11_local_syms] New. Some non-exported functions used the af* namespace. Changed to _af* for consistency, and to facilitate wildcard matching in the exports file. + [10_warning_fixes] New. Add misc #includes in test files to silence compiler warnings. + [20_verbose_test_output] New. Enable debugging output in twentyfour test in order to catch regressions on ARM. -- Daniel Kobras Thu, 11 Mar 2004 13:31:41 +0100 audiofile (0.2.6-1) unstable; urgency=low * New upstream version. * Added patches: + [10_update_libtool] New. Use recent libtool 1.5.2 as requested by KFreeBSD porters. Closes: #218376 * Removed patches: + [10_string_include] Merged upstream. + [10_namespace_cleanup] Obsolete. Upstream now uses a separate file containing all exported symbol names. * debian/copyright: Update addresses and copyright information. * debian/rules: Run regression tests unless cross-compiling. -- Daniel Kobras Tue, 9 Mar 2004 15:58:02 +0100 audiofile (0.2.4-1) unstable; urgency=low * New upstream version. * debian/rules: Move sfconvert and sfinfo binaries into -dev package as per policy. * debian/rules: Replace dh_movefiles with dh_install; bump debhelper compat to 4. * debian/rules: Switch to dpatch. * debian/control: Build-depend on dpatch. * debian/control: Bump versioned build-dependency on debhelper. * debian/control: Sanitize package descriptions. * debian/control: Complies with standards version 3.6.1. * debian/control: Change section of dev package to libdevel. * debian/control: Add conflicts/replaces to accomodate move of sf* binaries. * Applied patches: + [10_incorrect_wav_size] Old, converted to dpatch. Be lenient on WAV files with buggy size entry, provided all required chunks are present. + [10_namespace_cleanup] Old, converted to dpatch. Don't spill internal symbols into global namespace. + [10_sfinfo_no_options] Old, converted to dpatch. + [10_string_include] New. Include string.h to fix warning on 64bit archs. -- Daniel Kobras Sun, 9 Nov 2003 15:12:25 +0100 audiofile (0.2.3-4) unstable; urgency=low * Implements afOpenVirtualFile(), so applications can actually make use of the API exposed in af_vfs.h. (Kudos to Daniel Schepler .) * Include shlibs dependency on this version and up. That's because the above amounts to an API change, or rather an API fix. Previous versions declared the function in the headers, but didn't implement a stub in the lib itself. Same with some of the changes between 0.1.9, and 0.2.0, so it's really high time we add a shlibs version. -- Daniel Kobras Fri, 1 Mar 2002 22:30:08 +0100 audiofile (0.2.3-3) unstable; urgency=low * Keep audiofile from looping endlessly on broken wave files whose header advertises too large a file size. -- Daniel Kobras Fri, 1 Feb 2002 14:51:18 +0100 audiofile (0.2.3-2) unstable; urgency=low * Fix gross namespace pollution from audiofile-internal symbols. Closes: #128465 -- Daniel Kobras Mon, 21 Jan 2002 00:15:04 +0100 audiofile (0.2.3-1) unstable; urgency=low * New upstream version. * Configure with explicit host and build arch. * Don't clobber upstream config.{guess,sub}. -- Daniel Kobras Fri, 26 Oct 2001 11:42:08 +0200 audiofile (0.2.2-2) unstable; urgency=low * From upstream CVS: support ADPCM decoding. Closes: #88962 * From upstream CVS: afQuery() can return info on compression type. -- Daniel Kobras Tue, 18 Sep 2001 09:22:12 +0200 audiofile (0.2.2-1) unstable; urgency=low * New upstream version. * Adjusted sfconvert man page to new options. * Reverted compression fix for Sun/NeXT, superceded by upstream changes. * New maintainer. -- Daniel Kobras Wed, 25 Jul 2001 11:32:09 +0200 audiofile (0.2.1-0.3) unstable; urgency=low * Non-maintainer upload. * Revert bogus change to ltmain.sh. * Stop messing with config.{guess,sub}, link to version from autotools-dev instead. -- Daniel Kobras Wed, 13 Jun 2001 09:55:54 +0200 audiofile (0.2.1-0.2) unstable; urgency=low * Non-maintainer upload. * Fix length miscalculation on compressed Sun/NeXT data. Closes: #94489 * Include hppa/ia64-aware config.sub/config.guess. Closes: #94804 * Versioned debhelper build dependency. -- Daniel Kobras Thu, 31 May 2001 11:39:41 +0200 audiofile (0.2.1-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream version. Works on 8bit wavs. Fixes: #60793 * Added build-dependency on debhelper. Fixes: #70138 * Added manpages for supplied binaries. Brief documentation in doc/ excluded now. * Removed test programs from binary distribution. -- Daniel Kobras Wed, 14 Mar 2001 14:41:05 +0100 audiofile (0.1.9-0.1) unstable; urgency=low * New upstream version. * Apply patch to audiofile.m4 (fixes: bug#42523) -- Michael Alan Dorman Sun, 26 Sep 1999 10:36:56 -0400 audiofile (0.1.7-2) unstable; urgency=low * Added manpage for audiofile-config; thanks to Roland Rosenfeld (closes bug #39479) * Rebuilt on potato - fixes reported problem w/ enlightenment -- Jeff Licquia Sat, 19 Jun 1999 00:50:44 -0500 audiofile (0.1.7-1) unstable; urgency=low * New maintainer * New upstream version -- Jeff Licquia Sat, 5 Jun 1999 00:42:53 -0500 audiofile (0.1.6-1) unstable; urgency=low * New upstream release * Added undocumented manpage for audiofile-config -- Brian M. Almeida Fri, 12 Mar 1999 18:22:53 -0500 audiofile (0.1.6-0.1) unstable; urgency=low * Non-maintainer upload for GNOME 1.0 -- Jules Bean Fri, 5 Mar 1999 10:22:33 +0000 audiofile (0.1.5-5) unstable; urgency=low * Added extra documentation (#32366) -- Brian M. Almeida Wed, 3 Feb 1999 13:13:08 -0500 audiofile (0.1.5-4) unstable; urgency=low * Added audiofile.m4 to libaudiofile-dev -- Brian M. Almeida Mon, 25 Jan 1999 09:34:35 -0500 audiofile (0.1.5-3) unstable; urgency=low * Forgot to add audiofile-config to libaudiofile-dev -- Brian M. Almeida Sat, 16 Oct 1998 20:25:35 -0500 audiofile (0.1.5-2) unstable; urgency=low * Upstream CVS snapshot (19990112), needed for newest esound/eMusic -- Brian M. Almeida Tue, 12 Jan 1999 17:35:35 -0500 audiofile (0.1.5-1) unstable; urgency=low * Initial Release. (Made from CVS 19981014 snapshot, since shared libs are broken in the official release) -- Brian M. Almeida Sun, 4 Oct 1998 17:35:35 -0400 debian/rules0000775000000000000000000000131212142125351010241 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) %: dh $@ --parallel --with autoreconf override_dh_strip: dh_strip -plibaudiofile1 --dbg-package=libaudiofile-dbg dh_strip --remaining-packages override_dh_makeshlibs: dh_makeshlibs -V override_dh_auto_test: @if test "$(DEB_HOST_GNU_TYPE)" = "$(DEB_BUILD_GNU_TYPE)"; then \ dh_auto_test ; \ else \ echo "Skipping regression tests because we appear to be cross-compiling"; \ fi debian/libaudiofile1.docs0000664000000000000000000000006012142125346012547 0ustar ACKNOWLEDGEMENTS AUTHORS NEWS NOTES README TODO debian/sfinfo.10000664000000000000000000000324412142125346010541 0ustar .\" sfinfo - display information about audio files .\" Copyright (c) 2001 Daniel Kobras .\" .\" This manual page is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc.,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .\" .\" This manual page is written especially for Debian Linux. .\" .TH SFINFO 1 "March 2001" "Debian Project" "Debian GNU/Linux" .SH NAME sfinfo \- display information about audio files .SH SYNOPSIS .B sfinfo .I file1 file2 ... .SH DESCRIPTION Given one or more input audio files, .B sfinfo displays information about the audio data and the sound file itself, like the file format, audio encoding, sampling rate, or duration. The file format must be one of those supported by .BR libaudiofile (currently AIFF, AIFF-compressed, SUN/NeXT audio, WAVE, BICSF, AVR, IFF/8SVX, and NIST SPHERE), an error is emitted otherwise. .SH SEE ALSO .BR sfconvert (1). .SH AUTHOR .B sfinfo was written by Michael Pruett . .PP This manual page was written by Daniel Kobras for the Debian GNU/Linux system (but may be used by others). debian/copyright0000664000000000000000000002071712142125351011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: audiofile Upstream-Contact: Michael Pruett Source: http://www.68k.org/~michael/audiofile/ Copyright: 1998-2013 Michael Pruett Files: * Copyright: 1998-2013 Michael Pruett 2000-2001, Silicon Graphics, Inc 1999, Elliot Lee License: LGPL-2.1+ Files: ltmain.sh test/writeulaw.c test/testchannelmatrix.c test/writeraw.c test/testfloat.c test/twentyfour2.c test/pipe.c test/instparamtest.c test/floatto24.c test/query2.c test/twentyfour.c test/sixteen-to-eight.c test/testaupv.c test/testmarkers.c test/instparamwrite.c test/transparency.c test/testdouble.c test/printmarkers.c test/writealaw.c test/writeulaw.c examples/* sfcommands/* Copyright: 1998-2013 Michael Pruett 2000-2003 Silicon Graphics, Inc 1999-2001, Chris Vaill 1996-2008 Free Software Foundation, Inc License: GPL-2+ Files: libaudiofile/ScopedArray.h libaudiofile/File.* libaudiofile/Shared.h libaudiofile/UUID.h libaudiofile/UUID.cpp examples/alsaplay.cpp examples/osxplay.c test/* Copyright: 2003-2013, Michael Pruett License: BSD-3-clause Files: libaudiofile/modules/adpcm.c Copyright: 1992 by Stichting Mathematisch Centrum, Amsterdam, The Netherlands License: other-1 Files: libaudiofile/g711.* Copyright: no copyright holders License: other-2 Files: test/gtest/* Copyright: 2005-2008, Google Inc. License: other-3 Files: libaudiofile/extended.c Copyright: 1989-1991, Apple Computer, Inc License: other-4 Files: debian/* Copyright: 2011-2013 Alessio Treglia 2001-2009 Daniel Kobras License: GPL-2+ License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. . You should have received a copy of the GNU General Public License along with this program. If not, see . License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: other-1 Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the names of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. . STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. License: other-2 This source code is a product of Sun Microsystems, Inc. and is provided for unrestricted use. Users may copy or modify this source code without charge. . SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. . Sun source code is provided with no support and without any obligation on the part of Sun Microsystems, Inc. to assist in its use, correction, modification or enhancement. . SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE OR ANY PART THEREOF. . In no event will Sun Microsystems, Inc. be liable for any lost revenue or profits or other special, indirect and consequential damages, even if Sun has been advised of the possibility of such damages. License: other-3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: other-4 Warranty Information Even though Apple has reviewed this software, Apple makes no warranty or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose. As a result, this software is provided "as is," and you, its user, are assuming the entire risk as to its quality and accuracy. . This code may be used and freely distributed as long as it includes this copyright notice and the above warranty information. debian/libaudiofile-dev.docs0000664000000000000000000000007012142125351013237 0ustar ACKNOWLEDGEMENTS AUTHORS NEWS NOTES README docs/af*.txt debian/libaudiofile1.install0000664000000000000000000000002112142125346013262 0ustar usr/lib/*/*.so.* debian/gbp.conf0000664000000000000000000000003612142125360010602 0ustar [DEFAULT] pristine-tar = True