Skip to content

Commit

Permalink
INDENT: Small edits so that OS X indent can be used
Browse files Browse the repository at this point in the history
Signed-off-by: Anestis Bechtsoudis <[email protected]>
  • Loading branch information
anestisb committed Jan 10, 2016
1 parent a1b0a65 commit ccdf28c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions linux/ptrace_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,12 +747,14 @@ static void arch_ptraceAnalyzeData(honggfuzz_t * hfuzz, pid_t pid, fuzzer_t * fu
/*
* Unwind and resolve symbols
*/
/* *INDENT-OFF* */
funcs_t funcs[_HF_MAX_FUNCS] = {
[0 ... (_HF_MAX_FUNCS - 1)].pc = NULL,
[0 ... (_HF_MAX_FUNCS - 1)].line = 0,
[0 ... (_HF_MAX_FUNCS - 1)].func = {'\0'}
,
};
/* *INDENT-ON* */

#if !defined(__ANDROID__)
size_t funcCnt = arch_unwindStack(pid, funcs);
Expand Down Expand Up @@ -810,12 +812,14 @@ static void arch_ptraceSaveData(honggfuzz_t * hfuzz, pid_t pid, fuzzer_t * fuzze
/*
* Unwind and resolve symbols
*/
/* *INDENT-OFF* */
funcs_t funcs[_HF_MAX_FUNCS] = {
[0 ... (_HF_MAX_FUNCS - 1)].pc = NULL,
[0 ... (_HF_MAX_FUNCS - 1)].line = 0,
[0 ... (_HF_MAX_FUNCS - 1)].func = {'\0'}
,
};
/* *INDENT-ON* */

#if !defined(__ANDROID__)
size_t funcCnt = arch_unwindStack(pid, funcs);
Expand Down
3 changes: 3 additions & 0 deletions mangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ bool mangle_Resize(honggfuzz_t * hfuzz, uint8_t * buf, size_t * bufSz)
ssize_t newSz = *bufSz;
int delta = 0;
unsigned int val = (unsigned int)util_rndGet(1, 64);

/* *INDENT-OFF* */
switch (val) {
case 1 ... 16:
delta = -val;
Expand All @@ -357,6 +359,7 @@ bool mangle_Resize(honggfuzz_t * hfuzz, uint8_t * buf, size_t * bufSz)
LOG_F("Random value out of scope %u", val);
break;
}
/* *INDENT-ON* */

newSz += delta;

Expand Down

0 comments on commit ccdf28c

Please sign in to comment.