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

Function ntfs_getattributedata

src/ntfs.c:264–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262#endif
263
264const char* ntfs_getattributedata(const ntfs_attribresident* attrib, const char* end)
265{
266 const char* data = ((const char*)attrib) + le16(attrib->offAttribData);
267 if(le16(attrib->offAttribData)+le32(attrib->cbAttribData) > le32(attrib->header.cbAttribute) ||
268 data > end)
269 return NULL;
270 return data;
271}
272
273long int ntfs_get_first_rl_element(const ntfs_attribnonresident *attrnr, const char* end)
274{

Callers 2

rebuild_NTFS_BSFunction · 0.85
ntfs_get_volume_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected