Closed meteorlxy closed 4 years ago
Thanks for your bug report. Do you have any additional information? Can you perhaps share the IDB or a simple test case where this happens?
@cblichmann Thanks for your quick reply ❤️ .
Here I upload two IDB:
https://github.com/meteorlxy/binexport-34
In fact, I've randomly tested with some files and they all failed with the same error. I wonder if this is an issue with the version of my IDA Pro.
BTW, when I try to import an IDB (generated by 6.8) with 7.0 & binexport 10, I meet the same error in #24.
Thanks, I'll look into it
Found it: IDA 7 removed the API for obtaining SHA-1 hashes of the original file. As a replacement, BinExport now uses SHA-256, which is too long. I have prepared an internal change for this and expect this to land in a few days.
Great thanks!
I noticed that the SHA1 field is varying(40)
but I forgot to mention above. Sorry for that and looking forward to the new release.
The fix is writing all-zeroes into the SHA1 field for BinNavi (should still update it to use SHA256 at some point): https://github.com/google/binexport/blob/master/database/postgresql_writer.cc#L224
I have confirmed that binexport installed correctly.
BinExportText()
andBinExportStatistics()
works well.When executing
BinExportSql()
, this error occurs.Other Infomation: