Skip to content

Commit

Permalink
ensure null byte at the end of constants
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rb1dd3n committed Jun 6, 2018
1 parent 04b7760 commit 4e87d90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ function string_obfuscate {

RETVAL+="\\
({ \\
unsigned int *p = (unsigned int*)__builtin_alloca( $n * 4 ); \\
$VAR (char *)p; \\
unsigned int *p = (unsigned int*)__builtin_alloca($(( (n*4)+1 ))); \\
$VAR p[$n] = 0x00; \\
(char *)p; \\
})
"
}
Expand Down Expand Up @@ -269,7 +270,7 @@ EOF
function reptile_install {
reptile_init
config_gen

echo -ne "Compiling... "
make all > /dev/null 2>&1 && \
make clean > /dev/null 2>&1 && \
Expand Down

0 comments on commit 4e87d90

Please sign in to comment.