MCPcopy Create free account
hub / github.com/coreboot/coreboot / init_subpart_dir_entry

Function init_subpart_dir_entry

util/cbfstool/ifwitool.c:1304–1315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302}
1303
1304static size_t init_subpart_dir_entry(struct subpart_dir_entry *e,
1305 struct buffer *b, size_t offset)
1306{
1307 memset(e, 0, sizeof(*e));
1308
1309 assert(strlen(b->name) <= sizeof(e->name));
1310 strncpy((char *)e->name, (char *)b->name, sizeof(e->name));
1311 e->offset = offset;
1312 e->length = buffer_size(b);
1313
1314 return (offset + buffer_size(b));
1315}
1316
1317static void init_manifest_header(struct manifest_header *hdr, size_t size)
1318{

Callers 1

create_subpartFunction · 0.85

Calls 4

strlenFunction · 0.85
buffer_sizeFunction · 0.85
memsetFunction · 0.50
strncpyFunction · 0.50

Tested by

no test coverage detected