BoomerangDecompiler / boomerang

Boomerang Decompiler - Fighting the code-rot :)
Other
374 stars 59 forks source link

Unknown library function 'xxx', please update signatures! #95

Closed rfalke closed 6 years ago

rfalke commented 6 years ago

Output of 'boomerang-cli --version' boomerang-cli v0.3.99-alpha-1757-gd6a5867

Since Boomerang doesn't know some basic libc functions is no useful signatures.

Steps to reproduce:

  1. Download https://github.com/rfalke/decompiler-subjects/blob/master/from_holdec/dmi/output/ia32_elf/subject.exe
  2. Run: "./build/out/bin/boomerang-cli /tmp/subject.exe"

Actual behaviour

Warn  | src/boomerang/db/Prog.cpp               |  391 | Unknown library function 'putchar', please update signatures!

Additional comments

Running over the complete https://github.com/rfalke/decompiler-subjects:

$ cat $(find . -name by_boomerang-ng.out | grep ia32) | grep 'Unknown libr' | cut -d "'" -f2| sort | grep '^[a-z]' | uniq -c | sort -nr | head -n20
     34 fflush
     32 fputs
     31 sigaction
     30 sigemptyset
     27 sigaltstack
      9 putchar
      7 memcmp
      6 fputc
      5 ioctl
      4 strtol
      4 signal
      4 rand
      4 opendir
      4 getcwd
      3 unlink
      3 tolower
      3 strdup
      3 sleep
      3 readlink
      3 readdir