# HG changeset patch # User Matti Hamalainen # Date 1544488733 -7200 # Node ID b4a349f1c2f4f79490a7f6e2f9dee25e8108b6fb # Parent ae3e353731ae863f95b16cdc17517da07bd6bd1a Actually fix the load address handling in hash calculation. diff -r ae3e353731ae -r b4a349f1c2f4 sidlib.c --- a/sidlib.c Sat Dec 01 06:03:15 2018 +0200 +++ b/sidlib.c Tue Dec 11 02:38:53 2018 +0200 @@ -81,11 +81,11 @@ // Grab the load address psid->loadAddress = TH_LE16_TO_NATIVE(*(uint16_t *) data); - // .. do not include the load address to the hash if OLD SLDB format + // .. do not include the load address to the hash if NEW SLDB format if (newSLDB) + th_md5_append(state, &data[2], read - 2); + else th_md5_append(state, data, read); - else - th_md5_append(state, &data[2], read - 2); first = FALSE; }