Decrease stack usage in signature verification.

We have only 92K of stack and using over 4K per frame is wasteful

	* grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
	rather than stack.
	(grub_verify_signature_real): Likewise.
This commit is contained in:
Vladimir Serbinenko 2013-11-16 16:34:51 +01:00
parent ab4366fd49
commit 4f84ae0ec8
2 changed files with 35 additions and 20 deletions

View file

@ -1,3 +1,13 @@
2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
Decrease stack usage in signature verification.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
rather than stack.
(grub_verify_signature_real): Likewise.
2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
Decrease stack usage in mdraid 0.9x.