[CDG5] Random questions
Elliot Nunn
elliotnunn at fastmail.com
Wed Dec 12 23:03:13 AWST 2018
Huh... that’s surprising news about your System file. Given the largely transparent nature of this compression scheme, it is possible to imagine accidental expansion occurring somewhere in the build, localisation, installation or update process. But I don’t know.
Good call on the Huffman code. Any chance it could be a well known algo? Is there a 68k implementation?
> On 12 Dec 2018, at 5:35 pm, Max Poliakovski <maximumspatium at googlemail.com> wrote:
>
> Elliot,
>
>> Grepping through System 9.2.2 reveals several compressed resources:
>>
>> Could you have used a search method that extracted the resources
>> automatically?
>
> No. I opened the resource fork in a Unix Hexeditor and searched for 0xA89F6572.
> According to ResEdit, both CDEF #62 and DRVR #2 are uncompressed in my german "System" file: the "compressed" checkbox isn't selected.
> Does ResEdit unpack resources in background when opening a file for edit?
>
> $ SimpleDeRez ~/System/..namedfork/rsrc -compcmt -ascii | grep -A3 _compressed | head -n9
> data 'CDEF' (62, $61 /*sysheap, purgeable, _compressed*/) {
> $"A89F 6572 0012 0901 0000 0454 0003 03FF" /* ..er.......T.... */
> $"0000 3F04 E56F FF44 8E70 7082 A2E0 0083" /* ..?..o.D.pp..... */
> $"E2E0 0122 86E0 00E7 C0A2 0544 3EEF FF85" /* ...".......D>... */
> --
> data 'DRVR' (2, ".Print", $71 /*sysheap, purgeable, locked, _compressed*/) {
> $"A89F 6572 0012 0901 0000 019A 0003 03FF" /* ..er............ */
> $"0000 2278 058F FC90 00A0 00B0 00C0 00D0" /* .."x............ */
> $"18B9 41C9 A5B9 D080 0001 1149 5948 0008" /* ..A........IYH.. */
>
>> Here are some Donn resources, both compressed and extracted (manual
>> operation... ugh!). How will I identify the mysterious Mac OS 9 format?
>
> CDEF #62:
> $"A89F 6572 0012 0901 0000 0454 0003 03FF"
> DRVR #2:
> $"A89F 6572 0012 0901 0000 019A 0003 03FF"
>
> According to the defconID = 0x0003, both resources are compressed with that mysterious new method.
>
> A short peek into 'dcmp' #3 reveals a sophisticated compression method utilizing Huffman coding. It contains neither strings nor tables. Just a lot of code, much larger than Donn&Gregg stuff. I therefore suggest to postpone its RE until the Trampoline work is finished...
>
> BTW, many thanks for the Donn bits! I'll analyze them soon...
> _______________________________________________
> cdg5 mailing list
> cdg5 at ucc.asn.au
> https://lists.ucc.gu.uwa.edu.au/mailman/listinfo/cdg5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ucc.gu.uwa.edu.au/pipermail/cdg5/attachments/20181212/96ebc402/attachment.htm
More information about the cdg5
mailing list