* commands/hashsum.c (hash_file): Avoid possible stack overflow by
having a 4KiB and not 32KiB buffer size.
+2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * commands/hashsum.c (hash_file): Avoid possible stack overflow by
+ having a 4KiB and not 32KiB buffer size.
+
2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
* util/hostfs.c: Include `<errno.h>'.
hash_file (grub_file_t file, const gcry_md_spec_t *hash, void *result)
{
grub_uint8_t context[hash->contextsize];
- char *readbuf[4096];
+ grub_uint8_t readbuf[4096];
grub_memset (context, 0, sizeof (context));
hash->init (context);