Menu

#191 Wrong PE checksum sometimes...

3.x
open
None
5
2018-08-11
2018-08-09
No

Current PE checksum : 00018890
Calculated PE checksum: 011E2EDA MISMATCH!!!!

Discussion

  • Markus Gothe

    Markus Gothe - 2018-08-09

    When wrapping instead of using JNI, one must recalculate the PE checksum unless one is codesigning.

     

    Last edit: Markus Gothe 2018-08-10
  • Grzegorz Kowal

    Grzegorz Kowal - 2018-08-11

    Can you provide some details, describe what you are doing and when the problem happens?
    What version are you using on what system?
    What is the launch4j configuration used?

     

    Last edit: Grzegorz Kowal 2018-08-11
  • Grzegorz Kowal

    Grzegorz Kowal - 2018-08-11

    I think I understand what you mean out of your other comments. It's not about JNI actually because there you can also wrap. But rather a difference when you wrap the jar and use a launcher without wrapping.

    BR,
    Grzegorz

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2018-08-11
    • assigned_to: Grzegorz Kowal
     
  • Markus Gothe

    Markus Gothe - 2018-08-11

    Yes, 'ld' calculate and update the PE header's checksum. Then after that the jar file is appended to the PE. Now the checksum has to be updated again.

     
  • Markus Gothe

    Markus Gothe - 2018-08-11

    Í was thinking of providing a tool for this based on libbfd. I might start coding it

     

    Last edit: Markus Gothe 2018-08-11

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.