mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
Details: - Fix a memory leak in ZXID caused by using system hexdump() function instead of the one included in ZXID. - Set MAINTAINER'ship to admins@perceptyx.com PR: 230978 Submitted by: amontalban@gmail.com (new maintainer) MFH: 2018Q3
21 lines
779 B
C
21 lines
779 B
C
--- errmac.h.orig 2016-02-29 00:16:50 UTC
|
|
+++ errmac.h
|
|
@@ -483,9 +483,17 @@ extern FILE* errmac_debug_log; /* Def
|
|
#define DD_XML_BLOB(cf, lk, len, xml) /* Documentative */
|
|
|
|
int hexdmp(const char* msg, const void* p, int len, int max);
|
|
+#if __FreeBSD__
|
|
+int hexdump_zxid(const char* msg, const void* p, const void* lim, int max);
|
|
+#else
|
|
int hexdump(const char* msg, const void* p, const void* lim, int max);
|
|
+#endif
|
|
|
|
+#if __FreeBSD__
|
|
+#define HEXDUMP(msg, p, lim, max) if ((errmac_debug&ERRMAC_DEBUG_MASK) > 1) hexdump_zxid((msg), (p), (lim), (max))
|
|
+#else
|
|
#define HEXDUMP(msg, p, lim, max) if ((errmac_debug&ERRMAC_DEBUG_MASK) > 1) hexdump((msg), (p), (lim), (max))
|
|
+#endif
|
|
#define DHEXDUMP(msg, p, lim, max) /* Disabled hex dump */
|
|
|
|
#define DUMP_CORE() ASSERT(0)
|
|
|