all: cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-01-14 08:37:22 +01:00
parent 58de07629e
commit cc994326a0
21 changed files with 1030 additions and 868 deletions
+3 -3
View File
@@ -49,6 +49,9 @@ char *upx_safe_xprintf(const char *format, ...) attribute_format(1, 2);
upx_rsize_t upx_safe_strlen(const char *);
// globally redirect some functions
#undef strlen
#define strlen upx_safe_strlen
#undef snprintf
#undef sprintf
#undef vsnprintf
@@ -56,9 +59,6 @@ upx_rsize_t upx_safe_strlen(const char *);
#define sprintf ERROR_sprintf_IS_DANGEROUS_USE_snprintf
#define vsnprintf upx_safe_vsnprintf
#undef strlen
#define strlen upx_safe_strlen
/*************************************************************************
// some unsigned char string support functions to avoid casts
**************************************************************************/