Index: head/databases/redis/files/patch-src-zmalloc.c =================================================================== --- head/databases/redis/files/patch-src-zmalloc.c (nonexistent) +++ head/databases/redis/files/patch-src-zmalloc.c (revision 566418) @@ -0,0 +1,30 @@ +--- src/zmalloc.c.orig 2021-02-23 11:09:32.095861000 -0500 ++++ src/zmalloc.c 2021-02-23 11:20:04.491174000 -0500 +@@ -40,6 +40,7 @@ + free(ptr); + } + ++#include + #include + #include + #include "config.h" +@@ -48,18 +49,14 @@ + + #ifdef HAVE_MALLOC_SIZE + #define PREFIX_SIZE (0) ++#define ASSERT_NO_SIZE_OVERFLOW(sz) + #else + #if defined(__sun) || defined(__sparc) || defined(__sparc__) + #define PREFIX_SIZE (sizeof(long long)) + #else + #define PREFIX_SIZE (sizeof(size_t)) + #endif +-#endif +- +-#if PREFIX_SIZE > 0 + #define ASSERT_NO_SIZE_OVERFLOW(sz) assert((sz) + PREFIX_SIZE > (sz)) +-#else +-#define ASSERT_NO_SIZE_OVERFLOW(sz) + #endif + + /* Explicitly override malloc/free etc when using tcmalloc. */ Property changes on: head/databases/redis/files/patch-src-zmalloc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/databases/redis-devel/files/patch-src-zmalloc.c =================================================================== --- head/databases/redis-devel/files/patch-src-zmalloc.c (nonexistent) +++ head/databases/redis-devel/files/patch-src-zmalloc.c (revision 566418) @@ -0,0 +1,30 @@ +--- src/zmalloc.c.orig 2021-02-23 11:09:32.095861000 -0500 ++++ src/zmalloc.c 2021-02-23 11:20:04.491174000 -0500 +@@ -40,6 +40,7 @@ + free(ptr); + } + ++#include + #include + #include + #include "config.h" +@@ -48,18 +49,14 @@ + + #ifdef HAVE_MALLOC_SIZE + #define PREFIX_SIZE (0) ++#define ASSERT_NO_SIZE_OVERFLOW(sz) + #else + #if defined(__sun) || defined(__sparc) || defined(__sparc__) + #define PREFIX_SIZE (sizeof(long long)) + #else + #define PREFIX_SIZE (sizeof(size_t)) + #endif +-#endif +- +-#if PREFIX_SIZE > 0 + #define ASSERT_NO_SIZE_OVERFLOW(sz) assert((sz) + PREFIX_SIZE > (sz)) +-#else +-#define ASSERT_NO_SIZE_OVERFLOW(sz) + #endif + + /* Explicitly override malloc/free etc when using tcmalloc. */ Property changes on: head/databases/redis-devel/files/patch-src-zmalloc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/databases/redis5/files/patch-src-zmalloc.c =================================================================== --- head/databases/redis5/files/patch-src-zmalloc.c (nonexistent) +++ head/databases/redis5/files/patch-src-zmalloc.c (revision 566418) @@ -0,0 +1,30 @@ +--- src/zmalloc.c.orig 2021-02-23 11:09:32.095861000 -0500 ++++ src/zmalloc.c 2021-02-23 11:20:04.491174000 -0500 +@@ -40,6 +40,7 @@ + free(ptr); + } + ++#include + #include + #include + #include "config.h" +@@ -48,18 +49,14 @@ + + #ifdef HAVE_MALLOC_SIZE + #define PREFIX_SIZE (0) ++#define ASSERT_NO_SIZE_OVERFLOW(sz) + #else + #if defined(__sun) || defined(__sparc) || defined(__sparc__) + #define PREFIX_SIZE (sizeof(long long)) + #else + #define PREFIX_SIZE (sizeof(size_t)) + #endif +-#endif +- +-#if PREFIX_SIZE > 0 + #define ASSERT_NO_SIZE_OVERFLOW(sz) assert((sz) + PREFIX_SIZE > (sz)) +-#else +-#define ASSERT_NO_SIZE_OVERFLOW(sz) + #endif + + /* Explicitly override malloc/free etc when using tcmalloc. */ Property changes on: head/databases/redis5/files/patch-src-zmalloc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property