| 262 | #endif |
| 263 | |
| 264 | const 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 | |
| 273 | long int ntfs_get_first_rl_element(const ntfs_attribnonresident *attrnr, const char* end) |
| 274 | { |
no outgoing calls
no test coverage detected