MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / get64u

Function get64u

src/file_doc.c:810–818  ·  view source on GitHub ↗

@ @ requires \valid_read((char *)buffer + (offset .. offset + 8 - 1)); @ requires \initialized((char *)buffer + (offset .. offset + 8 - 1)); @ terminates \true; @ assigns \nothing; @*/

Source from the content-addressed store, hash-verified

808 @ assigns \nothing;
809 @*/
810static uint64_t get64u(const void *buffer, const unsigned int offset)
811{
812 /*@ assert \valid_read((char *)(buffer + offset) + (0 .. 7)); */
813 const char *ptr=(const char *)buffer + offset;
814 /*@ assert \valid_read(ptr + (0 .. 7)); */
815 const uint64_t *val=(const uint64_t *)ptr;
816 /*@ assert \valid_read(val); */
817 return le64(*val);
818}
819
820/*@
821 @ requires \valid(ext);

Callers 1

OLE_parse_filetime_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected