Skip to content
Snippets Groups Projects
Commit 7916f13a authored by David Bühler's avatar David Bühler Committed by Julien Signoles
Browse files

[obfuscator] Do not obfuscate functions with attribute FC_BUILTIN or fc_stdlib.

Instead of all functons with no definition.
parent 77482e92
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,9 @@ class visitor = object
if Cil.isFunctionType vi.vtype then
try
if vi.vname <> "main"
&& Kernel_function.is_definition (Globals.Functions.get vi) then
&& not (Cil.is_builtin vi)
&& not (Cil.is_special_builtin vi.vname)
&& not (Cil.hasAttribute "fc_stdlib" vi.vattr) then
vi.vname <- Dictionary.fresh Obfuscator_kind.Function vi.vname
with Not_found -> assert false
else begin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment