mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
priv: Fix brackets of burn macros.
This commit is contained in:
@@ -254,7 +254,7 @@ int match_hostname(const char *host, const char *pattern, unsigned int len);
|
|||||||
/** Overwrite the buffer with '\0' */
|
/** Overwrite the buffer with '\0' */
|
||||||
# define BURN_BUFFER(x, size) do { \
|
# define BURN_BUFFER(x, size) do { \
|
||||||
if ((x) != NULL) \
|
if ((x) != NULL) \
|
||||||
memset((x), '\0', (size))); __asm__ volatile("" : : "r"(&(x)) : "memory"); \
|
memset((x), '\0', (size)); __asm__ volatile("" : : "r"(&(x)) : "memory"); \
|
||||||
} while(0)
|
} while(0)
|
||||||
#else /* HAVE_GCC_VOLATILE_MEMORY_PROTECTION */
|
#else /* HAVE_GCC_VOLATILE_MEMORY_PROTECTION */
|
||||||
/** Overwrite a string with '\0' */
|
/** Overwrite a string with '\0' */
|
||||||
@@ -265,7 +265,7 @@ int match_hostname(const char *host, const char *pattern, unsigned int len);
|
|||||||
/** Overwrite the buffer with '\0' */
|
/** Overwrite the buffer with '\0' */
|
||||||
# define BURN_BUFFER(x, size) do { \
|
# define BURN_BUFFER(x, size) do { \
|
||||||
if ((x) != NULL) \
|
if ((x) != NULL) \
|
||||||
memset((x), '\0', (size))); __asm__ volatile("" : : "r"(&(x)) : "memory"); \
|
memset((x), '\0', (size)); __asm__ volatile("" : : "r"(&(x)) : "memory"); \
|
||||||
} while(0)
|
} while(0)
|
||||||
#endif /* HAVE_GCC_VOLATILE_MEMORY_PROTECTION */
|
#endif /* HAVE_GCC_VOLATILE_MEMORY_PROTECTION */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user