25.12.2013 Views

SLAMorris Final Thesis After Corrections.pdf - Cranfield University

SLAMorris Final Thesis After Corrections.pdf - Cranfield University

SLAMorris Final Thesis After Corrections.pdf - Cranfield University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

((X * 2^32) + Y) Mod Z = Position in hash table within thumbcache_idx.db<br />

Where<br />

X is the first 4 bytes in little endian of the thumbcache ID<br />

Y is the second 4 bytes in little endian of the thumbcache ID<br />

Z is the number of positions currently in the hash table<br />

[Chapter 6]<br />

This formula can also be used to establish the possible table sizes for an index<br />

file fragment by substituting possible values of Z, which must be multiples of<br />

101, into the equation to identify which, if any, values of Z solve the equation.<br />

Any value for Z which is valid for all the thumbnail cache ID’s in the fragment<br />

can be considered a potential table size. Once a possible table size is<br />

established it can be verified by substituting it into the equation for other records<br />

in the same fragment. The identification of a valid possible hash table size also<br />

shows that the thumbcache ID values are syntactically valid and provides a<br />

substantial indication that the fragment belongs to a thumbcache_idx.db file.<br />

<strong>After</strong> checking the thumbcache ID value, the remainder of the record structure<br />

is checked to ensure that the fragment follows the remainder of the structure<br />

and syntax identified in Chapter 6. The structure is followed in order starting<br />

with checking the flags are valid; if the record is complete the flags cannot<br />

consist solely of either 0xFF or 0x00. The remaining positions are then checked;<br />

these cannot be equal to 0 unless the record is empty. If a record fails any of<br />

the checks then the fragment is tested to see if it belongs to H2.<br />

Page<br />

179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!