Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add footer in sdb files (cdb) #24

Open
radare opened this issue Apr 1, 2014 · 0 comments
Open

Add footer in sdb files (cdb) #24

radare opened this issue Apr 1, 2014 · 0 comments

Comments

@radare
Copy link
Collaborator

radare commented Apr 1, 2014

Header may be problematic because of memory align issues. A footer like this is proposed:

05DB  : 1 nibble: version number, 3 nibbles: magic number

We also need to store the checksum, and optionally a timestamp. we can prefix them so the sdb_disk_footer() should do something like this:

928419A4 : timestamp (same as file? do we need it?)
38A0   ; checksum (crc16?)
05DB  ; magic footer

Another benefit of using footers instead of headers is that you can make it grow without breaking the hashtable.

GustavoLCR pushed a commit to GustavoLCR/sdb that referenced this issue Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant