Home
last modified time | relevance | path

Searched refs:member_size (Results 1 – 7 of 7) sorted by relevance

/external/pdfium/core/include/fxcrt/
Dfx_memory.h28 inline void* FX_SafeRealloc(void* ptr, size_t num_members, size_t member_size) { in FX_SafeRealloc() argument
29 if (num_members < std::numeric_limits<size_t>::max() / member_size) { in FX_SafeRealloc()
30 return realloc(ptr, num_members * member_size); in FX_SafeRealloc()
35 inline void* FX_AllocOrDie(size_t num_members, size_t member_size) { in FX_AllocOrDie() argument
37 if (void* result = calloc(num_members, member_size)) { in FX_AllocOrDie()
44 inline void* FX_AllocOrDie2D(size_t w, size_t h, size_t member_size) { in FX_AllocOrDie2D() argument
46 return FX_AllocOrDie(w * h, member_size); in FX_AllocOrDie2D()
54 size_t member_size) { in FX_ReallocOrDie() argument
55 if (void* result = FX_SafeRealloc(ptr, num_members, member_size)) { in FX_ReallocOrDie()
/external/vboot_reference/firmware/lib20/
Dcommon.c20 const void *member, size_t member_size, in vb2_verify_member_inside() argument
26 const ptrdiff_t member_end_offs = member_offs + member_size; in vb2_verify_member_inside()
38 if (member_size < 0 || member_end_offs < member_offs) in vb2_verify_member_inside()
/external/vboot_reference/firmware/lib21/
Dcommon.c63 uint32_t member_size) in vb2_verify_common_member() argument
66 uint32_t member_end = member_offset + member_size; in vb2_verify_common_member()
74 !vb2_aligned(member_size, sizeof(uint32_t))) in vb2_verify_common_member()
/external/vboot_reference/firmware/lib/
Dvboot_common.c59 const void *member, uint64_t member_size, in VerifyMemberInside() argument
68 if (UINT64_MAX - end < member_size) in VerifyMemberInside()
70 if (end + member_size > parent_size) in VerifyMemberInside()
/external/vboot_reference/firmware/lib20/include/
Dvb2_common.h51 const void *member, size_t member_size,
/external/vboot_reference/firmware/lib21/include/
Dvb2_common.h53 uint32_t member_size);
/external/vboot_reference/firmware/lib/include/
Dvboot_common.h70 const void *member, uint64_t member_size,