[gutsy] cpio segs on bad input
Bug #139928 reported by
Dave Gilbert
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cpio (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: cpio
Hi,
cpio -i </boot/
Now obviously I should have ungzip'd that initrd first; but in this case cpio is generting a load of
dross on the standard error and finally ending with a segfault.
It really shouldn't segfault on bad input.
(for ref this is on x86-64).
Dave
Related branches
To post a comment you must log in.
Hm, I do not get a crash on my x86-64. Running under gdb:
$ gdb cpio initrd. img-2.6. 22-11-generic 2>/tmp/log initrd. img-2.6. 22-11-generic 2>/tmp/log
GNU gdb 6.6-debian
...
(gdb) run -i </boot/
Starting program: /bin/cpio -i </boot/
(no debugging symbols found)
(no debugging symbols found)
Program exited with code 01.
(gdb)