GithubHelp home page GithubHelp logo

Comments (11)

mstange avatar mstange commented on May 26, 2024

Some evidence from /usr/lib/dsc_extractor.bundle:

Screen Shot 2021-11-07 at 10 37 45 AM

from ipsw.

blacktop avatar blacktop commented on May 26, 2024

Yes, it is definitely not a "UUID" I figured that out a month ago here:

// if ff.Headers[uuid].SubCachesUUID != ff.Headers[ff.UUID].SubCachesUUID { FIXME: what IS this field actually?

It appears to be an offset to the end of the imagesTextOffsetsection (the dylib path strings) in the subCaches, but in the "primary" cache you are right it seems to point to a small amount of data that the subCache's do not contain. Good find with respects to the UUIDs!

from ipsw.

blacktop avatar blacktop commented on May 26, 2024

The stuff that I thought looked like bit-field flags after progClosuresTrieWithSubCachesSize might tell you what kind of cache it is an how to interpret the (incorrect) subCacheUUID field perhaps? Or maybe one of these fields:

    uint32 unknown8;
    uint32 unknown9;

from ipsw.

blacktop avatar blacktop commented on May 26, 2024

What I was always MOST interested in what the mysterious unknown10Offset field. I see that it's an offset to a struct of what looks like large arrays of offsets? That might be where the patchInfo went.

from ipsw.

mstange avatar mstange commented on May 26, 2024

Edit: this is wrong

The unknown10Offset field is already present in dyld 852.2, which is public:
https://opensource.apple.com/source/dyld/dyld-852.2/dyld3/shared-cache/dyld_cache_format.h.auto.html

Or are you saying that the existing header definition cannot be used for subcaches, and that the subcaches have other data in those places?

from ipsw.

mstange avatar mstange commented on May 26, 2024

Oh, oops, never mind. I got confused because some fields later in the header look very similar to other fields earlier in the header.

from ipsw.

blacktop avatar blacktop commented on May 26, 2024

So you can tell how the field should be interpreted IF the numSubCaches is greater than 0. I have updated my 010 template to reflect it. Thank you for your help!

from ipsw.

blacktop avatar blacktop commented on May 26, 2024

Also the "8 bytes something else." is the "end offset" of the contamination of the sub caches (so far) or the totalSize. So for subCache.1 the field is it's size and for subCache.2 it's the size of subCache.1 + subCache.2 and so on.

from ipsw.

mstange avatar mstange commented on May 26, 2024

Ah, nice. So cumulativeSize might be an appropriate name.

from ipsw.

blacktop avatar blacktop commented on May 26, 2024

Yes! That's perfect.

from ipsw.

mstange avatar mstange commented on May 26, 2024

The cumulativeSize field is called cacheVMOffset: https://github.com/apple-oss-distributions/dyld/blob/5c9192436bb195e7a8fe61f22a229ee3d30d8222/cache-builder/dyld_cache_format.h#L496

from ipsw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.