Erik de Castro Lopo
f1bbf2e154
ALAC : Check return value of of fwrite.
...
In the process change parameter of alac_encode() function from
int32_t to uint32_t.
Thanks to Richard Ash <richard@audacityteam.org> for the report.
2013-08-17 09:55:04 +10:00
Erik de Castro Lopo
8a657c2424
configure.ac : Add HOST_TRIPLET.
2013-08-12 09:37:10 +10:00
Erik de Castro Lopo
0d46094fc2
Scripts/android-configure.sh : Drop preset $PREFIX.
2013-08-01 21:05:07 +10:00
Erik de Castro Lopo
7a5f494183
Detect and use fstat64() when sizeof (off_t) == 4.
...
Still have a problem of 32 bit systems where sizeof (off_t) == 4
and fstat64() doesn't exist (eg Android). In this case it will just
fail to work correctly at run time. This is bad.
2013-07-31 22:34:58 +10:00
Erik de Castro Lopo
19a8284361
Add Scripts/android-configure.sh.
2013-07-31 18:49:02 +10:00
Erik de Castro Lopo
1212de31c6
configure.ac : Improve detection of 64 bit file offset type.
2013-07-31 18:32:22 +10:00
Erik de Castro Lopo
e5e6ff5a0d
programs/sndfile-play.c : Special case for Android.
...
Actual playback is not supported but at least it now compiles for Android.
2013-07-31 18:32:18 +10:00
Erik de Castro Lopo
040d7fd5c8
tests/floating_point_test.tpl : Remove old HAVE_LRINT_REPLACEMENT usage.
2013-07-31 18:32:14 +10:00
Erik de Castro Lopo
71bd9f5909
src/ : Fix compiler warnings related to use of MAKE_MARKER macro.
...
Warnings were from the Clang compiler, complaining about things like
'255 << 24' overflowing a 32 bit integer. Solution was to change some
ints to uint32_t and an casts in the MAKE_MARKER macro itself.
2013-07-14 09:33:51 +10:00
Erik de Castro Lopo
46a68f972e
Add file Scripts/clang-sanitize.sh.
2013-07-14 09:32:02 +10:00
Erik de Castro Lopo
93bdeabf07
Fix a couple of warnings uncovered by the clang compiler.
2013-07-13 18:07:42 +10:00
Erik de Castro Lopo
84ee01e72c
configure.ac : Drop -Wunreachable-code.
...
Warns on things like a break after a return in a switch statement.
Doesn't seem that useful a warning.
2013-07-13 17:53:01 +10:00
Erik de Castro Lopo
ca790066b6
configure.ac : Fix for current versions of autotools.
...
Patch from Cristian Rodriguez.
2013-07-13 17:28:25 +10:00
Erik de Castro Lopo
471281a7a3
tests/floating_point_test.tpl : Reduce tolerance of a couple of tests.
...
A couple of tests were failing when compiled with gcc-4.8 (and
gcc-snapshot/4.9.0 from Debian). The tests changed were for 32 bit
ALAC (test result changed from -186 to -181 dB signal-to-noise) and
for doubles (test results changed from -300 to -205 dB signal-to-noise).
2013-07-12 19:10:13 +10:00
Erik de Castro Lopo
8393ee3e61
configure.ac : Include a couple more -W flags.
2013-07-12 18:44:21 +10:00
Erik de Castro Lopo
409d05275f
programs/sndfile-convert.c : Add a -normalize command line argument.
...
Feature request by Tim Blechmann.
Closes : https://github.com/erikd/libsndfile/issues/23
2013-07-02 17:48:50 +10:00
Erik de Castro Lopo
9341e9c6e7
src/sd2.c : Fix segfault in SD2 RSRC parser.
...
A specially crafted resource fork for an SD2 file can cause
the SD2 RSRC parser to read data from outside a dynamically
defined buffer. The data that is read is converted into a
short or int and used during further processing.
Since no write occurs, this is unlikely to be exploitable.
Bug reported by The Mayhem Team from Cylab, Carnegie Mellon
Univeristy. Paper is:
http://users.ece.cmu.edu/~arebert/papers/mayhem-oakland-12.pdf
2013-06-28 06:06:57 +10:00
Erik de Castro Lopo
c2e58d077f
configure.ac : Add -Wmissing-declarations to CFLAGS.
2013-06-25 18:00:51 +10:00
Erik de Castro Lopo
533e45cc08
programs/sndfile-convert.c : Improve error reporting.
...
Previous error reporting when the destination audio data format
wasn't supported by the container was inadequate.
Closes : https://github.com/erikd/libsndfile/issues/43
2013-06-24 19:47:22 +10:00
Erik de Castro Lopo
caea89ea3d
programs/common.[ch] : Add sfe_endian_name() etc functions.
...
Functions: sfe_endian_name(), sfe_container_name() and
sfe_codec_name().
2013-06-24 19:47:10 +10:00
Erik de Castro Lopo
96bfd88297
Add *.exe CLEANFILES in Makefile.am.
2013-06-23 21:33:37 +10:00
Erik de Castro Lopo
ef4231515a
.gitignore : Add generated file echo-install-dirs.
2013-06-23 15:47:28 +10:00
Erik de Castro Lopo
71a06e52d4
Add a couple of 'seek to end of file' tests.
2013-06-23 11:18:26 +10:00
Erik de Castro Lopo
7438eb7107
src/flac.c : Fix seeking to offset 0 from end of file.
...
For FLAC files, (unlike WAV and others), seeking to the end of the
file using:
file_length = sf_seek (file, 0, SEEK_END) ;
was failing because the underlying libFLAC was considering this as
an error condition. Work around this by detecting this in libsndfile
and doing the right thing.
Closes : https://github.com/erikd/libsndfile/issues/34
2013-06-23 10:59:00 +10:00
Erik de Castro Lopo
ac8a101960
sndfile-convert.c : Add ability to specify endian-ness.
...
At the request of Jim Gray, allow endian-ness of output file to be
specified on the command line as:
-endian=(little|big|cpu)
This is done before the call to sf_format_check() and may still
result in an error if the destination format does not support
the specified endian-ness.
2013-06-23 10:24:53 +10:00
Erik de Castro Lopo
90b38b36b8
Disable stack protector by default.
...
This option is disabled by default because it is known not to work
on FreeBSD 9.1 and for Linux -> Windows cross compiling using the
Debian MinGW-w64 tool chain.
Closes: https://github.com/erikd/libsndfile/issues/42
2013-06-22 19:36:32 +10:00
Erik de Castro Lopo
05d7f6a6d2
Purge un-needed M4/extra_largefile.m4.
...
Closes: https://github.com/erikd/libsndfile/issues/41
2013-05-05 05:10:24 +10:00
Erik de Castro Lopo
f62d96ee0e
doc/index.html : Remove Android from supported systems.
2013-04-30 20:18:15 +10:00
Erik de Castro Lopo
d0c9fae4f9
configure.ac : Sanity check --disable-largefile.
...
If sizeof (off_t) == 8, then disable large file support doesn't work.
2013-04-30 09:41:35 +10:00
Karl Lindén
9b331554ab
Use pkgconfigdir variable as it is not sure it will be libdir/pkgconfig.
...
Let an external script handle printing of installation directories so
that printing can be done in a `cleaner' way without tests.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-28 21:35:08 +10:00
Karl Lindén
958263fbd7
Do not use old variable INCLUDES and use modern AM_INIT_AUTOMAKE invocation.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-07 20:05:08 +10:00
Erik de Castro Lopo
0d6a1b0725
Make sure checkprograms are built as part of 'make test-tarball'.
2013-04-05 19:21:18 +11:00
Karl Lindén
315c92457b
Honour --htmldir option to configure script.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-05 07:32:24 +11:00
Erik de Castro Lopo
4953e9e8bb
configure.ac : Detect and enable stack protection.
2013-04-04 21:14:06 +11:00
Erik de Castro Lopo
ea31ce4588
tests/dft_cmp.c : Fix buffer overflow detected using gcc-4.8.
...
This was a buffer overflow in libsndfile's test suite code, not
in the actual library code.
2013-03-28 18:11:14 +11:00
Erik de Castro Lopo
7c893e482f
M4/gcc_version.m4 : Fix to work with OpenBSD's sed.
2013-03-09 20:34:20 +11:00
Erik de Castro Lopo
e11a0c1881
ALAC/alac_encoder.c : Add correct byte swapping for mChannelLayoutTag.
...
Patch from Michael Pruett, author of libaudiofile.
2013-03-07 08:00:57 +11:00
Erik de Castro Lopo
ebda7e54ac
doc/bugs.html : Link to the github issue tracker.
2013-03-02 10:06:43 +11:00
Erik de Castro Lopo
03afc5cc40
src/command.c : Fix FLAC name string.
2013-02-25 20:21:55 +11:00
Erik de Castro Lopo
f4698f5998
configure.ac : Fix sanitization of FLAC_CFLAGS value.
2013-02-22 17:34:31 +11:00
Erik de Castro Lopo
275a13db6d
configure.ac : Improve sanitization of FLAC_CFLAGS value.
2013-02-22 06:29:40 +11:00
Erik de Castro Lopo
f6b5397255
Purge old/incorrect doc/pkgconfig.html.
2013-02-22 06:22:49 +11:00
Erik de Castro Lopo
1bcfcd31b9
doc/ : Make internal links relative. Patch from Jan Stary.
2013-02-21 20:49:31 +11:00
Erik de Castro Lopo
7a7a1872a5
Call python interpreter instead of using '#!' in script.
...
This fixes builds on platforms where python is in /usr/local/bin.
Thanks to Jan Stary for reporting this.
2013-02-21 18:26:26 +11:00
Erik de Castro Lopo
4a7495cd50
ALAC/ : Remove redundant FIXME comment.
2013-02-15 06:44:54 +11:00
Erik de Castro Lopo
d18443e986
ChangeLog : Update entry.
2013-02-14 07:16:05 +11:00
Erik de Castro Lopo
34f1fe1c12
ALAC/ : Replace all un-aligned accesses with safe alternatives.
2013-02-13 20:54:43 +11:00
Erik de Castro Lopo
3c812eb4b3
Add functions psf_get_be(16|32|64) with tests.
...
These are needed for platforms where un-aligned accesses cause bus
faults.
2013-02-13 20:51:37 +11:00
Erik de Castro Lopo
6ced621a66
src/ : Add tests for psf_put_be32() and psf_put_be64().
2013-02-13 18:21:55 +11:00
Erik de Castro Lopo
c3c39ed677
src/test_cart_var.c : Minor fixes.
2013-02-12 17:44:27 +11:00