[PATCH] D124494: [lld] Add lld-fuzzer

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 19:33:43 PDT 2022


alexander-shaposhnikov added a comment.

@thakis - thanks for the comments,
this was created as an experiment (to see how it would work in practice / what kind of issues one can detect) and to see if there is any interest.

Some additional considerations:

1. one can observe (need to try multiple times) different crashes, including those which are in the code that parses linker scripts.
2. invalid input - e.g. for Mach-O there is no public formal specification what makes a valid Mach-O file, is there ? ( to the best of my knowledge) (i might be missing something)
3. another aspect (if I remember correctly) - there was an effort to make LLD usable as a library, in this case the input might come from various sources.
4. handling of invalid input is already in LLD to some extent (e.g. one can grep for 'invalid symbol index' in lld/ELF)

but other than that - sure, as I mentioned above - this is an experiment.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124494/new/

https://reviews.llvm.org/D124494



More information about the llvm-commits mailing list