AtomicParsley crashes reading fragmented .ismv MP4s
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
atomicparsley (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: atomicparsley
Command:
$ AtomicParsley "Big Buck Bunny_300000.ismv" -T
(Files are available from: http://
Expected Behavior:
MP4 atom tree to be printed
Actual Behavior:
Segmentation fault
System Info:
$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
$ uname -a
Linux Barcelona 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux
$ apt-cache policy atomicparsley
atomicparsley:
Installed: 0.9.0-0ubuntu2
Candidate: 0.9.0-0ubuntu2
Version table:
*** 0.9.0-0ubuntu2 0
500 http://
100 /var/lib/
I've reproduced the bug on a personal test file (not attached, its a generic bug).
Basically the fault lies in the openSomeFile method which mistakenly keeps closing files, which means fseeko() was ultimately segfaulting because it was using a mish-mash of old and newly allocated FILE data (deep inside glibc).
Patch attached fixes that problem, and also two memory leaks as reported by valgrind.