Les articles publiés sur le site
-
23 août 2015, par Erik de Castro Lopo
libFLAC/bitwriter.c: Fix undefined behaviour
Improve folding of signed to unsgned to avoid UB.
- [DH] src/libFLAC/bitwriter.c
-
23 août 2015, par Erik de Castro Lopo
libFLAC/bitreader.c: Fix undefined behaviour
The function FLAC__bitreader_read_raw_int32() triggered undefined behaviour
when sign extending an unsigned value. The Stanford Grahpics bithacks page
provided an alternative that avoided UB.
- [DH] src/libFLAC/bitreader.c
-
22 août 2015, par Erik de Castro Lopo
libFLAC/md5.c: Clean up allocation
Make sure ctx->capacity gets updated correctly when safe_realloc()
fails.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
22 août 2015, par Erik de Castro Lopo
libFLAC: Fix memory leak
Leak introduced in commit d9ae5e9128. Thanks to lvqcl <lvqcl.mail@gmail.com>
for pointing it out.
- [DH] src/libFLAC/metadata_object.c
-
22 août 2015, par Erik de Castro Lopo
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.
- [DH] include/share/alloc.h
- [DH] src/libFLAC/format.c
- [DH] src/libFLAC/md5.c
- [DH] src/libFLAC/metadata_object.c
- [DH] src/share/replaygain_analysis/replaygain_analysis.c