Skip to content

Conversation

jakeajames
Copy link

Am I missing something?

@sbingner
Copy link
Collaborator

I haven’t looked at the kernel code for it but presumably it allocates that in blocks of that size. It’s 64k blocks that way.


size_t length = (sizeof(mem) + hashesToInject * TRUST_CDHASH_LEN + 0xFFFF) & ~0xFFFF;
size_t length = (sizeof(mem) + hashesToInject * TRUST_CDHASH_LEN);
char *buffer = malloc(hashesToInject * TRUST_CDHASH_LEN);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants