Fix handling of tar numbers occupying the whole field.

* grub-core/fs/cpio.c (read_number): New function.
	(grub_cpio_find_file): Use read_number instead of strtoull.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-12-23 14:11:31 +01:00
parent a54a0e1270
commit 58eba9eec7
2 changed files with 21 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
Fix handling of tar numbers occupying the whole field.
* grub-core/fs/cpio.c (read_number): New function.
(grub_cpio_find_file): Use read_number instead of strtoull.
2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names