summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-03-22 11:25:38 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-03-22 11:25:38 +0000
commit65c5fdfb58acd533e86e975548f22ad1518bff89 (patch)
tree7b4a7a150c9ab4ab668b703a43694997408741b3 /src/lib
parent2a0dc18fdefe71e5f2e14d572368ded624d27be8 (diff)
sorry but these still break compilation under last Xcode available for my
OSX 10.6.8 environment, as they were doing before rev 16136 (comparison always true due to limited range of the variables). nw.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libflac/libFLAC/memory.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libflac/libFLAC/memory.c b/src/lib/libflac/libFLAC/memory.c
index 4d100975087..f0e180fc77b 100644
--- a/src/lib/libflac/libFLAC/memory.c
+++ b/src/lib/libflac/libFLAC/memory.c
@@ -84,8 +84,8 @@ FLAC__bool FLAC__memory_alloc_aligned_int32_array(unsigned elements, FLAC__int32
FLAC__ASSERT(0 != aligned_pointer);
FLAC__ASSERT(unaligned_pointer != aligned_pointer);
- if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
- return false;
+// if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
+// return false;
pu = (FLAC__int32*)FLAC__memory_alloc_aligned(sizeof(*pu) * (size_t)elements, &u.pv);
if(0 == pu) {
@@ -113,8 +113,8 @@ FLAC__bool FLAC__memory_alloc_aligned_uint32_array(unsigned elements, FLAC__uint
FLAC__ASSERT(0 != aligned_pointer);
FLAC__ASSERT(unaligned_pointer != aligned_pointer);
- if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
- return false;
+// if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
+// return false;
pu = (FLAC__uint32*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv);
if(0 == pu) {
@@ -142,8 +142,8 @@ FLAC__bool FLAC__memory_alloc_aligned_uint64_array(unsigned elements, FLAC__uint
FLAC__ASSERT(0 != aligned_pointer);
FLAC__ASSERT(unaligned_pointer != aligned_pointer);
- if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
- return false;
+// if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
+// return false;
pu = (FLAC__uint64*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv);
if(0 == pu) {
@@ -171,8 +171,8 @@ FLAC__bool FLAC__memory_alloc_aligned_unsigned_array(unsigned elements, unsigned
FLAC__ASSERT(0 != aligned_pointer);
FLAC__ASSERT(unaligned_pointer != aligned_pointer);
- if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
- return false;
+// if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
+// return false;
pu = (unsigned*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv);
if(0 == pu) {
@@ -202,8 +202,8 @@ FLAC__bool FLAC__memory_alloc_aligned_real_array(unsigned elements, FLAC__real *
FLAC__ASSERT(0 != aligned_pointer);
FLAC__ASSERT(unaligned_pointer != aligned_pointer);
- if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
- return false;
+// if((size_t)elements > SIZE_MAX / sizeof(*pu)) /* overflow check */
+// return false;
pu = (FLAC__real*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv);
if(0 == pu) {