mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
code format
This commit is contained in:
@ -96,7 +96,8 @@ void afl_shm_deinit(sharedmem_t *shm) {
|
||||
Returns a pointer to shm->map for ease of use.
|
||||
*/
|
||||
|
||||
u8 *afl_shm_init(sharedmem_t *shm, size_t map_size, unsigned char non_instrumented_mode) {
|
||||
u8 *afl_shm_init(sharedmem_t *shm, size_t map_size,
|
||||
unsigned char non_instrumented_mode) {
|
||||
|
||||
shm->map_size = map_size;
|
||||
|
||||
@ -137,10 +138,10 @@ u8 *afl_shm_init(sharedmem_t *shm, size_t map_size, unsigned char non_instrument
|
||||
|
||||
}
|
||||
|
||||
/* If somebody is asking us to fuzz instrumented binaries in non-instrumented mode,
|
||||
we don't want them to detect instrumentation, since we won't be sending
|
||||
fork server commands. This should be replaced with better auto-detection
|
||||
later on, perhaps? */
|
||||
/* If somebody is asking us to fuzz instrumented binaries in non-instrumented
|
||||
mode, we don't want them to detect instrumentation, since we won't be
|
||||
sending fork server commands. This should be replaced with better
|
||||
auto-detection later on, perhaps? */
|
||||
|
||||
if (!non_instrumented_mode) setenv(SHM_ENV_VAR, shm->g_shm_file_path, 1);
|
||||
|
||||
@ -164,10 +165,10 @@ u8 *afl_shm_init(sharedmem_t *shm, size_t map_size, unsigned char non_instrument
|
||||
|
||||
shm_str = alloc_printf("%d", shm->shm_id);
|
||||
|
||||
/* If somebody is asking us to fuzz instrumented binaries in non-instrumented mode,
|
||||
we don't want them to detect instrumentation, since we won't be sending
|
||||
fork server commands. This should be replaced with better auto-detection
|
||||
later on, perhaps? */
|
||||
/* If somebody is asking us to fuzz instrumented binaries in non-instrumented
|
||||
mode, we don't want them to detect instrumentation, since we won't be
|
||||
sending fork server commands. This should be replaced with better
|
||||
auto-detection later on, perhaps? */
|
||||
|
||||
if (!non_instrumented_mode) { setenv(SHM_ENV_VAR, shm_str, 1); }
|
||||
|
||||
|
Reference in New Issue
Block a user