Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue with obfuscated libraries failing instrumentation #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Static-Flow
Copy link

This is an attempt at fixing issue #54

@Static-Flow
Copy link
Author

Hmm unclear if this might just be masking the problem. This gets past instrumentation but then fails on fuzzing like so:

Unhandled exception. System.TypeInitializationException: The type initializer for '<Module>' threw an exception.
 ---> System.InvalidProgramException: Common Language Runtime detected an invalid program.
   at Iron.Pdf.Extensions.feqyia.elnidp()
   at .cctor()
   --- End of inner exception stack trace ---
   at IronPdfFuzz.IronPdfFuzzing.<>c.<Main>b__0_0(String stream)
   at SharpFuzz.Fuzzer.<>c__DisplayClass11_0.<Wrap>b__0(Stream stream)
   at SharpFuzz.Fuzzer.RunWithoutAflFuzz(Action`1 action, Stream stream)
   at SharpFuzz.Fuzzer.OutOfProcess.Run(Action`1 action)
   at SharpFuzz.Fuzzer.OutOfProcess.Run(Action`1 action, Int32 bufferSize)

with a very simple fuzz harness:

        static void Main(string[] args)
     {
         var renderer = new IronPdf.HtmlToPdf();
         Fuzzer.OutOfProcess.Run(stream =>
         {
             Console.WriteLine(stream);
             string fileContents = File.ReadAllText(stream);
             Console.WriteLine(fileContents);
             renderer.RenderHtmlAsPdf(fileContents);
         });
     }
     ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant