When I link Blackbox the second time without any change in the source, the second BlackBox.exe file has a different checksum to the first BlackBox.exe file.
Is it a future or is it a bug?
This question arise because we still have a lot of trouble with false positive detection of some virus scanner.
- Helmut
Linking BlackBox
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: Linking BlackBox
I have just made an experiment. I have built BlackBox several times and each exe gave different md5sum.
DevLinker uses timestamp during the compilation process:
Code: Select all
ivan@dell:~/desktop/blackbox-1.7.1-b1.940$ md5sum BlackBox4.exe
f8a33bc10e54824489c8c829321a885d BlackBox4.exe
ivan@dell:~/desktop/blackbox-1.7.1-b1.940$ md5sum BlackBox5.exe
582de638e0b09615d5a8e0ad0fc01dc1 BlackBox5.exe
ivan@dell:~/desktop/blackbox-1.7.1-b1.940$ md5sum BlackBox6.exe
81a6ae5aa1bbff993aedaa0b3b990584 BlackBox6.exe
Code: Select all
Dialog.ShowStatus("linking");
timeStamp := TimeStamp();
...
Write4(timeStamp); (* time/date *)
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: Linking BlackBox
This results from putting a timestamp into the exe file.Zinn wrote:When I link Blackbox the second time without any change in the source, the second BlackBox.exe file has a different checksum to the first BlackBox.exe file.
Is it a future or is it a bug?
This question arise because we still have a lot of trouble with false positive detection of some virus scanner.
- Helmut
You can see it in the context menu (click mouse right on an exe file) -> Properties -> Details: Change Date
- Josef
Re: Linking BlackBox
Iwan & Josef thanks for the answer. Now I know why it is different.
We have the date and the version number in System/Rsrc/Strings.odc and the version number in Win/Rsrc/BlackBox.rc.
Do we need a third place?
Should be the exe file equal when nothing has changed?
- Helmut
We have the date and the version number in System/Rsrc/Strings.odc and the version number in Win/Rsrc/BlackBox.rc.
Do we need a third place?
Should be the exe file equal when nothing has changed?
- Helmut
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: Linking BlackBox
That is the requirement of PE (exe) format. I think, that Center should follow that rules.
https://en.wikipedia.org/wiki/Portable_Executable
https://en.wikipedia.org/wiki/Portable_Executable