about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-09-01 17:47:14 +0200
committerhexcoder- <heiko@hexco.de>2019-09-01 17:55:47 +0200
commitc124576a4dc00e31ad5cad118098f46eaa29cd17 (patch)
tree2cfc3a0fc24352907d88516dbd82f83b65ed9166
parent659037eef53efc539a077331e52cd2657114d437 (diff)
downloadafl++-c124576a4dc00e31ad5cad118098f46eaa29cd17.tar.gz
change text color in FATAL, ABORT and PFATAL macros for the actual
message to avoid white text on white background (as is standard in
plain X11 xterm). Now the text will be printed in default text
color (which should be always readable)
-rw-r--r--debug.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug.h b/debug.h
index a943a573..c0044280 100644
--- a/debug.h
+++ b/debug.h
@@ -198,7 +198,7 @@
 
 #define FATAL(x...) do { \
     SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] PROGRAM ABORT : " \
-         cBRI x); \
+         cRST x); \
     SAYF(cLRD "\n         Location : " cRST "%s(), %s:%u\n\n", \
          __FUNCTION__, __FILE__, __LINE__); \
     exit(1); \
@@ -208,7 +208,7 @@
 
 #define ABORT(x...) do { \
     SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] PROGRAM ABORT : " \
-         cBRI x); \
+         cRST x); \
     SAYF(cLRD "\n    Stop location : " cRST "%s(), %s:%u\n\n", \
          __FUNCTION__, __FILE__, __LINE__); \
     abort(); \
@@ -219,7 +219,7 @@
 #define PFATAL(x...) do { \
     fflush(stdout); \
     SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-]  SYSTEM ERROR : " \
-         cBRI x); \
+         cRST x); \
     SAYF(cLRD "\n    Stop location : " cRST "%s(), %s:%u\n", \
          __FUNCTION__, __FILE__, __LINE__); \
     SAYF(cLRD "       OS message : " cRST "%s\n", strerror(errno)); \