hexbin not converting some hqx files properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
macutils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: macutils
I have a hex compressed file called StartHere.hqx which was created by Macromedia Flash 8.0 and contains a projector file. This might be a bug with Macromedia, but here is what I have found so far which lead me to believe the bug is in hexbin.
I received a file called StartHere.hqx which has the following MD5 a596175bcd43232
I ran hexbin StartHere.hqx which produced the following output :
1 excess bytes ignored
The file StartHere.bin with MD5 f6700a6656bd572
I attempted to run this on a Mac OS 10.4.5 which immediately launched the stuff it expander utility and extracted the application from my supposed binary.
I copied this working application file to my linux PC; its MD5 is e206c4740dc3fd3
I tried binhex to see what it would produce on the working binary file, and it spat out "File is not MacBinary: StartHere". Which was clearly wrong since it was the working executable.
Next, I tried running binhex on the output of hexbin, StartHere.bin. I ran "binhex StartHere.bin > ../StartHere.hqx" (up one dir so I wouldn't overwrite my original). This is what I got
sgauna@
-rw-r--r-- 1 sgauna sgauna 3256707 2007-12-07 12:53 ../StartHere.hqx
-rwxr--r-- 1 sgauna sgauna 3255054 2007-12-07 12:03 StartHere.hqx
The newly compressed is slightly larger than the original and extracts via hexbin without errors to produce the same non-executable file as the original would produce.
I ran an strace against the hexbin utility but was unable to determine what the problem could be. I don't believe this package has been updated in a long time, so its probably just because the standard once used for conversion has been modified since the last update, but I really don't know. As far as I know, this could just be a bug with the Macromedia utility; if it is, I'll re-post this message with their developers.
This is the output of strace when the command "strace -o hexbin.strace hexbin StartHere.hqx" was run.