Commit Graph

3049 Commits

Author SHA1 Message Date
evpobr
7e2db6e8ef Create SECURITY.md 2021-11-18 09:57:37 +05:00
evpobr
c7b69d7589 Update CHANGELOG.md
Commit 404bf9a also fixes
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25624.
2021-11-09 21:01:06 +05:00
evpobr
b1307c7755 ci: Remove yasm-tools for x64-windows workaround 2021-11-09 14:52:19 +05:00
evpobr
404bf9af79 Fix integer overflow in psf_log_printf()
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28441

Credit to OSS-Fuzz.
2021-11-09 14:28:10 +05:00
David Seifert
f1495b4bcc
Release 1.1.0beta2
Fixes #784
2021-10-24 14:53:12 +02:00
David Seifert
1c407fe823
libtool: don't build static archives by default 2021-10-24 14:53:11 +02:00
David Seifert
4b64fd767a
programs/sndfile-deinterleave.c: fix broken calloc call
Fixes #783
2021-10-24 14:26:31 +02:00
David Seifert
aaac071f60
update CHANGELOG.md for MPEG-III-in-wav 2021-10-24 13:37:08 +02:00
Arthur Taylor
e09e5dd043 mpeg: Move dataoffset check from codec to format init 2021-10-22 23:57:30 -07:00
Arthur Taylor
d1c87ec1c7 mpeg: Disable experimental writing MPEG subformats in WAV 2021-10-22 23:57:30 -07:00
Arthur Taylor
4b8209e650 wav: Add R/W support for MPEG_LAYER_III subformat in wav 2021-10-22 23:57:30 -07:00
Arthur Taylor
c42e41324b wavlike: Add fmt MPEGLAYER3
See Microsoft's documentation for <mmreg.h>.
2021-10-22 23:57:30 -07:00
Arthur Taylor
294eb05633 mpeg: Heed dataoffset to avoid passing RIFF header when reading from pipes. 2021-10-22 23:57:30 -07:00
Arthur Taylor
1a5d40cf21 mpeg: Bug fix for mpeg encode, using frame_size before encoder init. 2021-10-22 23:57:30 -07:00
Arthur Taylor
444d9a4c8a wav: Detect ID3v1 trailers, do not parse as a chunk 2021-10-22 23:57:30 -07:00
David Seifert
d5a036e11a
configure.ac: Remove stack smash protection (#778)
* This is something deployers should enable if they want it.
2021-09-21 14:51:52 +02:00
nia
3ead8d2266
sndfile-play: Add NetBSD support (#776)
* sndfile-play: Use Sun-compatible audio device on NetBSD

Keep the gain unchanged. Avoids distortion from playing sounds
too loudly and preserves the user's existing volume settings.
2021-09-21 14:15:14 +02:00
papadave66
f65e8bc9d1 Fix duplicated case value of ESTRPIPE on BSD 2021-09-08 13:40:59 +05:00
David Seifert
f1bfc717b1
Remove AC_HEADER_STDC
* No point in checking for C89 headers in 2021

Fixes #774
2021-09-05 15:01:10 +02:00
David Seifert
475ddd7a46
Switch release tarballs .bz2 -> .xz
* `.bz2` = 0.86 MiB
* `.xz` = 0.70 MiB
  by switching, we save nearly 20%
2021-09-05 15:01:09 +02:00
David Seifert
5e321c80cf
Update $as_echo_n -> AS_ECHO_N 2021-09-05 15:01:08 +02:00
David Seifert
8aba5d7f5b
Update AC_HELP_STRING -> AS_HELP_STRING 2021-09-05 15:01:07 +02:00
evpobr
2421c8501e sndfile-info: Remove duplicate array 2021-09-01 11:55:31 +05:00
evpobr
0956676eb1 sfprocess: Fix memory leaks 2021-09-01 10:01:43 +05:00
evpobr
b2998c9fc6 sndfile-loopify: Fix memory leak 2021-08-31 13:54:13 +05:00
evpobr
c284c0508a sndfile-loopify: Remove unused struct 2021-08-31 13:51:09 +05:00
evpobr
04ae52469e autotools: Fix missing external libs message
Add libopus to make missing external libraries warning correct.
2021-08-31 13:15:02 +05:00
evpobr
9f5d66e91d
README.md: Fix link to the main repository 2021-08-24 14:59:39 +05:00
Peter Lemenkov
497a177177 docs: Fix link to the main repository
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2021-08-24 14:55:16 +05:00
DavidKorczynski
110e26d9c2
Add new fuzzer for OSS-Fuzz (#769)
Adds a fuzzer targeting sf_read_double, sf_read_int and sf_read_short.

Co-authored-by: evpobr <evpobr@gmail.com>
2021-08-15 09:38:48 +05:00
evpobr
dc1c8c2492 sndfile.h: Fix (really) get/set bitrate commands values 2021-07-17 09:48:43 +05:00
evpobr
3ef35eea25 sndfile.h: Fix get/set bitrate commands values
Numeric values of SFC_GET_BITRATE_MODE and SFC_SET_BITRATE_MODE commands
matched the values ​​of commands SFC_SET_OGG_PAGE_LATENCY_MS and
SFC_SET_OGG_PAGE_LATENCY.
2021-07-09 14:38:24 +05:00
Arthur Taylor
86c9f9eb70 mpeg: decode cleanups of copyright, comments, copyright, unused 2021-07-04 22:01:06 -07:00
evpobr
ccfd37ab92
Use forward for loops (#760)
* Use forward for loops

* mpeg: Rewrite decode read conversion copy loops

Rewrite the mpeg_dec_read_X() conversion copy loops for clarity and bug
fixes.

 - Use two buffers rather than in-place expansion for float -> double
   conversion of mpeg_dec_read_double(). The previous method required a
   less-compiler optimizer friendly backwards looping. This also broke
   strict-aliasing rules as well, (although this could be worked around
   with a union pointer.)

 - Add optional clipping support for float->short and float->int reads.

 - Don't bother deref'ing and passing the otherwise unused
   MPEG_DEC_PRIVATE pointer, instead deref it as needed in
   mpeg_dec_decode().

Co-authored-by: Arthur Taylor <art@ified.ca>
2021-07-05 09:22:11 +05:00
Daniel G
e318801588
Fix the typo (#763) 2021-07-02 13:59:07 +05:00
evpobr
16b089a8a2 m4/add_fortify_source.m4: Update to fix MinGW bug
See https://github.com/msys2/MINGW-packages/issues/5803 for details.
2021-06-18 11:26:10 +05:00
Arthur Taylor
682eee35f3 configure.ac: Handle 'beta' suffix in WIN_RC_VERSION generation 2021-06-18 11:00:17 +05:00
evpobr
d948e9b13a mpeg: Fix pedantic warning
ISO C does not allow extra ';' outside of a function [-Wpedantic].
2021-06-16 12:22:38 +05:00
evpobr
e46c4b9eb2 mpeg: Fix int overflow, closes #756 2021-06-16 12:20:41 +05:00
Ioseb Laghidze
01628f48b9
Add cmake build instructions for Android (#751)
Co-authored-by: I.Laghidze <developer@artisan-one.com>
Co-authored-by: evpobr <evpobr@gmail.com>
2021-06-15 21:29:22 +05:00
David Seifert
dfdad63ff2
Release 1.1.0beta1 2021-06-13 15:33:10 +02:00
evpobr
62b7fb3b35 Define ALWAYS_INLINE to __forceinline for MSVC 2021-06-06 16:24:44 +05:00
evpobr
5300a9e18c Update CHANGELOG.md 2021-06-01 10:25:51 +05:00
evpobr
8cb0169f58 cmake: Support pre-release versions 2021-05-25 17:10:29 +05:00
evpobr
85aea74e57 Update sndfile.pc for MPEG support 2021-05-25 16:17:04 +05:00
evpobr
383e6e90e4 cmake: Read ABI version from configure.ac 2021-05-25 15:31:11 +05:00
evpobr
494a6d633e autotools: Use ABI version for symbol scripts 2021-05-21 15:27:37 +05:00
evpobr
0cbfc93a3e cmake: Fix shared library ABI on Apple platforms
Now ABI version must be compatible with Autotools builds. Note that
this change requires CMake >= 3.17 for building dylib on Apple
platforms.
2021-05-16 14:51:32 +05:00
evpobr
eddac7625d ci: Fix Ubuntu builds 2021-05-12 09:07:39 +05:00
bobsayshilol
949c89122d ALAC: Enable release check from original code
The original code that this was copied from only disabled this check in
debug builds as described in the comment, however doing so also allows
`channelIndex` to increase without bounds and can lead to writing past
the end of the output buffer.

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27503
2021-04-26 09:46:58 +05:00