MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / parseLCStr

Method parseLCStr

helpers/scanner/parsers/macho-node/parser.js:160–169  ·  view source on GitHub ↗
(buf, off)

Source from the content-addressed store, hash-verified

158 }
159
160 parseLCStr (buf, off) {
161 if (off + 4 > buf.length)
162 throw new Error('lc_str OOB');
163
164 var offset = this.readUInt32(buf, off) - 8;
165 if (offset > buf.length)
166 throw new Error('lc_str offset OOB');
167
168 return this.parseCStr(buf.slice(offset));
169 }
170
171 parseCommand(type, buf, file) {
172 if (type === 'segment')

Callers 3

parseLoadDylinkerMethod · 0.95
parseRpathMethod · 0.95
parseLoadDylibMethod · 0.95

Calls 2

parseCStrMethod · 0.95
readUInt32Method · 0.80

Tested by

no test coverage detected