sibears / IDAGolangHelper

Set of IDA Pro scripts for parsing GoLang types information stored in compiled binary
1.01k stars 150 forks source link

Fix LineTable search #13

Closed FirehaK closed 4 years ago

FirehaK commented 4 years ago

Gopclntab.findGoPcLn() now performs a search across the entire binary instead of only searching IDA defined functions. This fixes #11 where in some cases the plugin was unable to find the LineTable.

grokeus commented 4 years ago

Hi! hmm, look like this code won't work if "lookup" exist in binary as some data? I mean that we probably should try to keep searching while find_data will return BADDADDR or we find pclntab so we should calculate end_ea out of loop(actually looks like get_segm_end(0) returning idc.BADADDR, so we can just pass BADADDR as second argument)