[diffoscope] Diffoscope inconsistency

Javier Ron javierro at kth.se
Fri Aug 23 15:18:08 UTC 2024


Hello Diffoscope team,

We discovered inconsistent behavior while running the tool for compiled 
java classes.

When running in Ubuntu Jammy with libmagic 5.42, the java classes were 
being compared as java bytecode,
as expected.

When running in SUSE 15.5, with libmagic 5.32 the java classes were 
being compared as hexdumps.

We tracked the issue and found that the retrieved magic contained "Cafe 
Babe" at the beginning, thus
the corresponding java regex 
<https://salsa.debian.org/reproducible-builds/diffoscope/-/blob/master/diffoscope/comparators/java.py#L78> 
failed to match.

Best
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20240823/99bc56f8/attachment.htm>


More information about the diffoscope mailing list