certifi / erlang-certifi

SSL Certificates for Erlang
Other
131 stars 33 forks source link

certifi_cacerts.beam from <= 1.2.1 binary format #20

Closed KronicDeth closed 6 years ago

KronicDeth commented 6 years ago

It's fixed in your 2.0.0 release, but trying to parse certifi_cacerts.beam from before 2.0.0 breaks my decompiler because the .beam didn't have a FOR1 magic number at the start. (I use http://beam-wisdoms.clau.se/en/latest/indepth-beam-file.html# as guide for the binary format to decompile.) What was the internal format of the certifi_cacerts.beam?

KronicDeth commented 6 years ago

I figured it out: I didn't realize that -compile([compressed]). would make the outer format be GZIP instead of the internal chunks being gzipped. (I figured out it was gzip because of the magic number detected by file) I can now decompile compressed .beam files, so thanks for the test case. ❤️