Steve Lhomme
9977bb5b77
include/share/compat.h : use fseek if fseeko is not available
2024-04-22 14:37:41 +02:00
Martijn van Beurden
e00d9b881f
Update copyright year and maintainer status
2023-06-06 22:08:24 +02:00
Martijn van Beurden
22fffdceb8
Check for overflow when multiplying skip samples with sample size
...
Credit: Oss-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58606
2023-05-08 19:39:08 +02:00
Martijn van Beurden
00cb41ee03
Add use of x86 BMI2 to bitreader_read_rice_signed_block
2023-03-27 22:10:00 +02:00
Martijn van Beurden
8daf62da0c
Rename fuzzer source files to simplify oss-fuzz build script
2023-02-21 15:56:40 +01:00
Martijn van Beurden
3baaf23faa
Add warning that md5 functions are used elsewhere
2023-02-21 08:16:46 +01:00
Martijn van Beurden
fbb6cb5c07
Add OOM checking to fuzzing
2022-08-20 16:03:53 +02:00
Martijn van Beurden
21fe95ee82
Add and use _nofree variants of safe_realloc functions
...
Parts of the code use realloc like
x = safe_realloc(x, somesize);
when this is the case, the safe_realloc variant used must free the
old memory block in case it fails, otherwise it will leak. However,
there are also instances in the code where handling is different:
if (0 == (x = safe_realloc(y, somesize)))
return false
in this case, y should not be freed, as y is not set to NULL we
could encounter double frees. Here the safe_realloc_nofree
functions are used.
2022-08-20 16:03:53 +02:00
lutianxiong
b715d7b9fe
fix potential memleak
2022-08-20 16:03:53 +02:00
Martijn van Beurden
3022dad831
Fix and warning for MSVC with Windows XP toolset ( #399 )
...
A warning and a small workaround is added for building
libFLAC on MSVC with a specific Windows XP targeting toolset.
2022-08-06 20:32:28 +02:00
Martijn van Beurden
10d7ce268b
Bulk update copyright dates to 2022
2022-07-26 16:23:07 +02:00
Martijn van Beurden
67131c04b8
Include stddef.h in compat.h
...
See https://github.com/xiph/flac/issues/76 for details
Also, move include of stddef.h and stdarg.h up to top of file to
make clear that they are included unconditionally
2022-07-19 17:33:29 +02:00
Martijn van Beurden
1bb80c18da
Small make distcheck fixes
2022-05-27 21:59:32 +02:00
Martijn van Beurden
e0e9cc58b4
Remove all Visual Studio specific build files
2022-05-27 21:59:32 +02:00
Martijn van Beurden
e5e99dcdc2
Simplify and merge win_utf8 files and remove from DLL interface
...
libFLAC DLLs were exposing windows_unicode_filename.h functions
because flac and metaflac needed to set flac_internal_set_utf8_
filenames. Files windows_unicode_filename.{c/h} and
win_utf8_io.[c/h] are merged, and all non-utf8 parts are removed.
With this commit, the libFLAC DLL interface is the same as the
libFLAC interface of shared libraries on other platforms
2022-05-17 22:05:45 +02:00
Martijn van Beurden
becba351f0
Make it possible for fuzzer to disable instruction set optimizations
...
This should greatly increase code coverage of the encoder fuzzer
2022-05-11 10:34:49 +02:00
Rosen Penev
bfe5ff9455
change if checks to ifdef
...
More similar to the rest of the code.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-29 19:17:26 +02:00
sezero
25305d685b
Fix msvc build after commit b917d456
...
Closes: https://github.com/xiph/flac/issues/152
2019-10-19 14:51:05 +11:00
Erik de Castro Lopo
04974d2715
Fix a number of gcc 9.2 compiler warnings
2019-09-15 16:14:36 +10:00
oreo639
01167efa6a
Fix function redefinition on arm-none-eabi compilers
2019-09-15 11:35:36 +10:00
Rosen Penev
66dd7f05d7
Switch to utimensat for newer POSIX versions
...
Some libcs like uClibc-ng can optionally disable deprecated functions.
utime is one of them. When done so, both the header and the function go
missing.
This fixes flac_utime to work in such a situation.
2019-08-20 06:49:13 +10:00
lvqcl
edfbe3cf19
Move CreateFile_utf8 function to a more logical place
2018-08-25 18:55:30 +10:00
lvqcl
9fa2b5edba
move CreateFile function outside of libFLAC
2018-08-19 15:12:26 +10:00
luz.paz
01eb19708c
Fix miscellaneous typos.
...
Found via `codespell -q 3`
2018-05-24 07:20:19 +10:00
Erik de Castro Lopo
45f7d41a8a
Fix for missing WINAPI_FAMILY_PARTITION
...
This is macro identifier is not defined, define it to `0`.
2018-02-10 13:37:55 +11:00
Erik de Castro Lopo
b762a20ace
Fix missing SIZE_MAX definition on Android
2017-05-03 18:37:12 +10:00
Erik de Castro Lopo
25b2d82fe4
Fix typos in header files
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2017-03-21 05:39:29 +11:00
Rosen Penev
c669249e4c
Fix compile with cygwin
...
The underscores are wrong. The comment is also correct.
Also remove the configure.ac option. Otherwise it tries to compile the
windows unicode stuff which POSIX(cygwin) does not understand.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-02-09 20:02:18 +11:00
Erik de Castro Lopo
33f093ae2f
include/share/compat.h: Only define inline for C
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2017-01-24 06:20:06 +11:00
Erik de Castro Lopo
3be455142b
Add missing file include/share/msvc2005_int.h
2017-01-19 11:17:01 +11:00
Erik de Castro Lopo
1e9e707c6f
stdint.h fixes for MSVS 2005/2008
...
This adds a new msvc2005_int.h header file which is "force included"
as needed by the MSVS project file.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2017-01-19 06:33:33 +11:00
Erik de Castro Lopo
6b00dc26b2
Another bulk update of copyright dates
2016-12-05 19:07:13 +11:00
Erik de Castro Lopo
6a5fe43b7e
Bulk update copyright dates
2016-12-05 06:35:39 +11:00
Erik de Castro Lopo
c4141f6132
Another Windows build fix
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2016-02-11 18:23:34 +11:00
Erik de Castro Lopo
ab61102209
More Windows fixes
...
These fixes got lost in an earlier commit.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2016-02-09 17:56:55 +11:00
Erik de Castro Lopo
52522f3a71
More `make distcheck` fixes
...
* Add two missing files to repo.
* Add files to Makefile.am `EXTRA_DIST` list.
2016-02-09 14:05:50 +11:00
Erik de Castro Lopo
d40a6bc695
libFLAC: Remove win_utf8_io dependency
...
Path-from: lvqcl <lvqcl.mail@gmail.com>
2016-02-08 22:04:12 +11:00
Erik de Castro Lopo
7be5df6c7f
Refactoring of win_utf8_io
...
* Simplifies *print functions.
* Improves file related functions.
* Preparation to move all file related functions into libFLAC.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2016-01-31 12:42:26 +11:00
Erik de Castro Lopo
6c03ab204a
Clean up #includes
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2016-01-24 08:08:55 +11:00
Erik de Castro Lopo
293d6b22cd
macros.h: Make FLAC_CHECK_RETURN print to stderr
...
Also comment the fact that this macro should only be used for things
that are extremely unlikely to fail.
2016-01-19 18:20:25 +11:00
Erik de Castro Lopo
6cc1cbad2c
libFLAC: Support 64bit brword/bwword
...
This patch allows FLAC__BYTES_PER_WORD to be set to 8, but is disabled by
default.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2016-01-04 10:31:35 +11:00
Erik de Castro Lopo
0a0e5363ad
libFLAC: Tweak MSVC support
...
Visual Studio 2013 and newer has better support for C99.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2016-01-04 10:31:18 +11:00
Erik de Castro Lopo
46d3a4c6f1
Couple of minor tweaks
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2015-12-30 05:10:58 +11:00
Erik de Castro Lopo
d9ae5e9128
libFLAC: Add function safe_realloc_()
...
The new function wraps, realloc() and if the realloc() fails, it
free()s the old pointer.
This is an improvement on the potential realloc() memory leak that
was fixed in 15a9062609
.
Still needs fuzzing to validate it.
2015-08-22 19:39:37 +10:00
Erik de Castro Lopo
1123087821
Compat: Fix for MSVC deprecated functions
...
According to MSDN, stricmp and strnicmp functions are deprecated
since MSVC 2005 and _stricmp/_strnicmp should be used instead.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2015-08-09 08:42:41 +10:00
Erik de Castro Lopo
7c3cd3d908
Update grabbag tests to work out-of-tree.
2015-02-15 20:37:40 +11:00
Zoë Blade
7b757e46f2
Fix some minor word duplication
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2014-12-03 21:43:03 +11:00
Erik de Castro Lopo
39d9791b03
More date fixes.
2014-11-25 20:02:22 +11:00
Erik de Castro Lopo
1437391577
Update copyright years to include 2014.
2014-11-25 13:04:30 +11:00
Erik de Castro Lopo
b7d13c0716
include/share/endswap.h : Fix usage of HAVE_BSWAP16.
...
The code was incorrectly using #ifndef on a value that was always defined
to a value of either 0 or 1.
2014-11-12 07:06:20 -08:00