Lines Matching refs:malformedError

63 static Error malformedError(const Twine &Msg) {  in malformedError()  function
87 return malformedError("Structure read out-of-range"); in getStructOrErr()
196 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo()
199 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo()
211 return malformedError("load command 0 extends past the end all load " in getFirstLoadCommandInfo()
225 return malformedError("load command " + Twine(LoadCommandIndex + 1) + in getNextLoadCommandInfo()
234 Err = malformedError("the mach header extends past the end of the " in parseHeader()
263 return malformedError(Twine(Name) + " at offset " + Twine(Offset) + in checkOverlappingElement()
292 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand()
300 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand()
315 return malformedError("offset field of section " + Twine(J) + " in " + in parseSegmentLoadCommand()
323 return malformedError("offset field of section " + Twine(J) + " in " + in parseSegmentLoadCommand()
333 return malformedError("offset field plus size field of section " + in parseSegmentLoadCommand()
342 return malformedError("size field of section " + in parseSegmentLoadCommand()
349 return malformedError("addr field of section " + Twine(J) + " in " + in parseSegmentLoadCommand()
357 return malformedError("addr field plus size of section " + Twine(J) + in parseSegmentLoadCommand()
370 return malformedError("reloff field of section " + Twine(J) + " in " + in parseSegmentLoadCommand()
377 return malformedError("reloff field plus nreloc field times sizeof(" in parseSegmentLoadCommand()
389 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand()
395 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand()
399 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand()
415 return malformedError("load command " + Twine(LoadCommandIndex) + in checkSymtabCommand()
418 return malformedError("more than one LC_SYMTAB command"); in checkSymtabCommand()
424 return malformedError("LC_SYMTAB command " + Twine(LoadCommandIndex) + in checkSymtabCommand()
428 return malformedError("symoff field of LC_SYMTAB command " + in checkSymtabCommand()
443 return malformedError("symoff field plus nsyms field times sizeof(" + in checkSymtabCommand()
451 return malformedError("stroff field of LC_SYMTAB command " + in checkSymtabCommand()
457 return malformedError("stroff field plus strsize field of LC_SYMTAB " in checkSymtabCommand()
473 return malformedError("load command " + Twine(LoadCommandIndex) + in checkDysymtabCommand()
476 return malformedError("more than one LC_DYSYMTAB command"); in checkDysymtabCommand()
483 return malformedError("LC_DYSYMTAB command " + Twine(LoadCommandIndex) + in checkDysymtabCommand()
487 return malformedError("tocoff field of LC_DYSYMTAB command " + in checkDysymtabCommand()
494 return malformedError("tocoff field plus ntoc field times sizeof(struct " in checkDysymtabCommand()
504 return malformedError("modtaboff field of LC_DYSYMTAB command " + in checkDysymtabCommand()
520 return malformedError("modtaboff field plus nmodtab field times sizeof(" + in checkDysymtabCommand()
529 return malformedError("extrefsymoff field of LC_DYSYMTAB command " + in checkDysymtabCommand()
536 return malformedError("extrefsymoff field plus nextrefsyms field times " in checkDysymtabCommand()
546 return malformedError("indirectsymoff field of LC_DYSYMTAB command " + in checkDysymtabCommand()
553 return malformedError("indirectsymoff field plus nindirectsyms field times " in checkDysymtabCommand()
563 return malformedError("extreloff field of LC_DYSYMTAB command " + in checkDysymtabCommand()
570 return malformedError("extreloff field plus nextrel field times sizeof" in checkDysymtabCommand()
580 return malformedError("locreloff field of LC_DYSYMTAB command " + in checkDysymtabCommand()
587 return malformedError("locreloff field plus nlocrel field times sizeof" in checkDysymtabCommand()
607 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkLinkeditDataCommand()
610 return malformedError("more than one " + Twine(CmdName) + " command"); in checkLinkeditDataCommand()
617 return malformedError(Twine(CmdName) + " command " + in checkLinkeditDataCommand()
621 return malformedError("dataoff field of " + Twine(CmdName) + " command " + in checkLinkeditDataCommand()
627 return malformedError("dataoff field plus datasize field of " + in checkLinkeditDataCommand()
644 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDyldInfoCommand()
647 return malformedError("more than one LC_DYLD_INFO and or LC_DYLD_INFO_ONLY " in checkDyldInfoCommand()
655 return malformedError(Twine(CmdName) + " command " + in checkDyldInfoCommand()
659 return malformedError("rebase_off field of " + Twine(CmdName) + in checkDyldInfoCommand()
665 return malformedError("rebase_off field plus rebase_size field of " + in checkDyldInfoCommand()
674 return malformedError("bind_off field of " + Twine(CmdName) + in checkDyldInfoCommand()
680 return malformedError("bind_off field plus bind_size field of " + in checkDyldInfoCommand()
689 return malformedError("weak_bind_off field of " + Twine(CmdName) + in checkDyldInfoCommand()
695 return malformedError("weak_bind_off field plus weak_bind_size field of " + in checkDyldInfoCommand()
704 return malformedError("lazy_bind_off field of " + Twine(CmdName) + in checkDyldInfoCommand()
710 return malformedError("lazy_bind_off field plus lazy_bind_size field of " + in checkDyldInfoCommand()
719 return malformedError("export_off field of " + Twine(CmdName) + in checkDyldInfoCommand()
725 return malformedError("export_off field plus export_size field of " + in checkDyldInfoCommand()
741 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDylibCommand()
748 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDylibCommand()
752 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDylibCommand()
763 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDylibCommand()
777 return malformedError("more than one LC_ID_DYLIB command"); in checkDylibIdCommand()
780 return malformedError("LC_ID_DYLIB load command in non-dynamic library " in checkDylibIdCommand()
790 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDyldCommand()
797 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDyldCommand()
801 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDyldCommand()
812 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkDyldCommand()
823 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkVersCommand()
826 return malformedError("more than one LC_VERSION_MIN_MACOSX, " in checkVersCommand()
838 return malformedError("load command " + Twine(LoadCommandIndex) + in checkNoteCommand()
846 return malformedError("offset field of LC_NOTE command " + in checkNoteCommand()
852 return malformedError("size field plus offset field of LC_NOTE command " + in checkNoteCommand()
874 return malformedError("load command " + Twine(LoadCommandIndex) + in parseBuildVersionCommand()
889 return malformedError("load command " + Twine(LoadCommandIndex) + in checkRpathCommand()
896 return malformedError("load command " + Twine(LoadCommandIndex) + in checkRpathCommand()
900 return malformedError("load command " + Twine(LoadCommandIndex) + in checkRpathCommand()
911 return malformedError("load command " + Twine(LoadCommandIndex) + in checkRpathCommand()
923 return malformedError("more than one LC_ENCRYPTION_INFO and or " in checkEncryptCommand()
927 return malformedError("cryptoff field of " + Twine(CmdName) + in checkEncryptCommand()
933 return malformedError("cryptoff field plus cryptsize field of " + in checkEncryptCommand()
945 return malformedError("load command " + Twine(LoadCommandIndex) + in checkLinkerOptCommand()
966 return malformedError("load command " + Twine(LoadCommandIndex) + in checkLinkerOptCommand()
975 return malformedError("load command " + Twine(LoadCommandIndex) + in checkLinkerOptCommand()
987 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkSubCommand()
991 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkSubCommand()
1002 return malformedError("load command " + Twine(LoadCommandIndex) + " " + in checkSubCommand()
1013 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1026 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1036 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1048 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1054 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1059 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1067 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1073 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1079 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1085 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1091 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1097 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1103 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1109 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1115 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1121 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1126 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1134 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1140 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1145 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1154 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1160 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1165 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1173 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1179 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1184 return malformedError("load command " + Twine(LoadCommandIndex) + in checkThreadCommand()
1190 return malformedError("unknown cputype (" + Twine(cputype) + ") load " in checkThreadCommand()
1206 return malformedError("load command " + Twine(LoadCommandIndex) + in checkTwoLevelHintsCommand()
1209 return malformedError("more than one LC_TWOLEVEL_HINTS command"); in checkTwoLevelHintsCommand()
1216 return malformedError("offset field of LC_TWOLEVEL_HINTS command " + in checkTwoLevelHintsCommand()
1223 return malformedError("offset field plus nhints times sizeof(struct " in checkTwoLevelHintsCommand()
1289 Err = malformedError("load commands extend past the end of the file"); in MachOObjectFile()
1293 Err = malformedError("universal header architecture: " + in MachOObjectFile()
1331 Err = malformedError("load command " + Twine(I) + " cmdsize not a " in MachOObjectFile()
1338 Err = malformedError("load command " + Twine(I) + " cmdsize not a " in MachOObjectFile()
1402 Err = malformedError("LC_UUID command " + Twine(I) + " has incorrect " in MachOObjectFile()
1407 Err = malformedError("more than one LC_UUID command"); in MachOObjectFile()
1482 Err = malformedError("LC_SOURCE_VERSION command " + Twine(I) + in MachOObjectFile()
1487 Err = malformedError("more than one LC_SOURCE_VERSION command"); in MachOObjectFile()
1493 Err = malformedError("LC_MAIN command " + Twine(I) + in MachOObjectFile()
1498 Err = malformedError("more than one LC_MAIN command"); in MachOObjectFile()
1504 Err = malformedError("LC_ENCRYPTION_INFO command " + Twine(I) + in MachOObjectFile()
1515 Err = malformedError("LC_ENCRYPTION_INFO_64 command " + Twine(I) + in MachOObjectFile()
1529 Err = malformedError("load command " + Twine(I) + in MachOObjectFile()
1542 Err = malformedError("load command " + Twine(I) + in MachOObjectFile()
1555 Err = malformedError("load command " + Twine(I) + in MachOObjectFile()
1568 Err = malformedError("load command " + Twine(I) + in MachOObjectFile()
1580 Err = malformedError("LC_ROUTINES command " + Twine(I) + in MachOObjectFile()
1585 Err = malformedError("more than one LC_ROUTINES and or LC_ROUTINES_64 " in MachOObjectFile()
1592 Err = malformedError("LC_ROUTINES_64 command " + Twine(I) + in MachOObjectFile()
1597 Err = malformedError("more than one LC_ROUTINES_64 and or LC_ROUTINES " in MachOObjectFile()
1606 Err = malformedError("more than one LC_UNIXTHREAD command"); in MachOObjectFile()
1622 Err = malformedError("load command " + Twine(I) + " for cmd value of: " + in MachOObjectFile()
1641 Err = malformedError("contains LC_DYSYMTAB load command without a " in MachOObjectFile()
1651 Err = malformedError("ilocalsym in LC_DYSYMTAB load command " in MachOObjectFile()
1658 Err = malformedError("ilocalsym plus nlocalsym in LC_DYSYMTAB load " in MachOObjectFile()
1663 Err = malformedError("iextdefsym in LC_DYSYMTAB load command " in MachOObjectFile()
1670 Err = malformedError("iextdefsym plus nextdefsym in LC_DYSYMTAB " in MachOObjectFile()
1676 Err = malformedError("iundefsym in LC_DYSYMTAB load command " in MachOObjectFile()
1683 Err = malformedError("iundefsym plus nundefsym in LC_DYSYMTAB load " in MachOObjectFile()
1691 Err = malformedError("no LC_ID_DYLIB load command in dynamic library " in MachOObjectFile()
1736 return malformedError("bad section index: " + Twine((int)NSect) + in checkSymbolTable()
1741 return malformedError("bad n_value: " + Twine((int)NValue) + " past " in checkSymbolTable()
1753 return malformedError("bad library ordinal: " + Twine(LibraryOrdinal) + in checkSymbolTable()
1759 return malformedError("bad string table index: " + Twine((int)NStrx) + in checkSymbolTable()
1783 return malformedError("bad string index: " + Twine(Entry.n_strx) + in getSymbolName()
1920 return malformedError("bad section index: " + Twine((int)index) + in getSymbolSection()
2018 return malformedError("bad section index: " + Twine((int)SectionIndex)); in getSection()
3002 *E = malformedError("export info size " + Twine(error) + in pushNode()
3011 *E = malformedError( in pushNode()
3022 *E = malformedError("flags " + Twine(error) + in pushNode()
3033 *E = malformedError( in pushNode()
3044 *E = malformedError("dylib ordinal of re-export " + Twine(error) + in pushNode()
3054 *E = malformedError( in pushNode()
3068 *E = malformedError("import name of re-export in export trie data at " in pushNode()
3078 *E = malformedError("import name of re-export in export trie data at " in pushNode()
3090 *E = malformedError("address " + Twine(error) + in pushNode()
3099 *E = malformedError("resolver of stub and resolver " + Twine(error) + in pushNode()
3108 *E = malformedError( in pushNode()
3119 *E = malformedError("byte for count of childern in export trie data at " in pushNode()
3143 *E = malformedError("edge sub-string in export trie data at node: 0x" + in pushDownUntilBottom()
3153 *E = malformedError("child node offset " + Twine(error) + in pushDownUntilBottom()
3161 *E = malformedError("loop in childern in export trie data at node: 0x" + in pushDownUntilBottom()
3175 *E = malformedError("node is not an export node in export trie data at " in pushDownUntilBottom()
3201 *E = malformedError("node is not an export node in export trie data at " in moveNext()
3410 *E = malformedError("fixup in segment " + Twine(SegmentIndex) + in moveNext()
3439 *E = malformedError("fixup in segment " + Twine(SegmentIndex) + in moveNext()
3532 *E = malformedError("for REBASE_OPCODE_SET_TYPE_IMM bad bind type: " + in moveNext()
3547 *E = malformedError("for REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " + in moveNext()
3556 *E = malformedError("for REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " + in moveNext()
3572 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_ULEB " + Twine(error) + in moveNext()
3581 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_ULEB " + Twine(error) + in moveNext()
3597 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_IMM_SCALED " + in moveNext()
3619 *E = malformedError("for REBASE_OPCODE_DO_REBASE_IMM_TIMES " + in moveNext()
3638 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ULEB_TIMES " + in moveNext()
3651 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ULEB_TIMES " + in moveNext()
3668 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB " + in moveNext()
3680 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB " + in moveNext()
3697 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_" in moveNext()
3710 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_" in moveNext()
3722 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_" in moveNext()
3738 *E = malformedError("bad rebase info (bad opcode value 0x" + in moveNext()
3883 *E = malformedError("BIND_OPCODE_SET_DYLIB_ORDINAL_IMM not allowed in " in moveNext()
3892 *E = malformedError("for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB bad " in moveNext()
3908 *E = malformedError("BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB not allowed in " in moveNext()
3917 *E = malformedError("for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB " + in moveNext()
3924 *E = malformedError("for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB bad " in moveNext()
3940 *E = malformedError("BIND_OPCODE_SET_DYLIB_SPECIAL_IMM not allowed in " in moveNext()
3950 *E = malformedError("for BIND_OPCODE_SET_DYLIB_SPECIAL_IMM unknown " in moveNext()
3972 *E = malformedError( in moveNext()
3994 *E = malformedError("for BIND_OPCODE_SET_TYPE_IMM bad bind type: " + in moveNext()
4008 *E = malformedError("for BIND_OPCODE_SET_ADDEND_SLEB " + Twine(error) + in moveNext()
4023 *E = malformedError("for BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " + in moveNext()
4032 *E = malformedError("for BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " + in moveNext()
4048 *E = malformedError("for BIND_OPCODE_ADD_ADDR_ULEB " + Twine(error) + in moveNext()
4057 *E = malformedError("for BIND_OPCODE_ADD_ADDR_ULEB " + Twine(error) + in moveNext()
4074 *E = malformedError("for BIND_OPCODE_DO_BIND " + Twine(error) + in moveNext()
4081 *E = malformedError( in moveNext()
4090 malformedError("for BIND_OPCODE_DO_BIND missing preceding " in moveNext()
4103 *E = malformedError("BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB not allowed in " in moveNext()
4112 *E = malformedError("for BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB " + in moveNext()
4119 *E = malformedError( in moveNext()
4128 *E = malformedError( in moveNext()
4137 *E = malformedError("for BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB " + in moveNext()
4149 *E = malformedError("for BIND_OPCODE_ADD_ADDR_ULEB (after adding " in moveNext()
4167 *E = malformedError("BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED not " in moveNext()
4174 *E = malformedError( in moveNext()
4183 *E = malformedError( in moveNext()
4196 *E = malformedError("for BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED " + in moveNext()
4209 *E = malformedError("BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB not " in moveNext()
4221 *E = malformedError("for BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB " in moveNext()
4231 *E = malformedError("for BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB " in moveNext()
4239 *E = malformedError( in moveNext()
4248 *E = malformedError( in moveNext()
4260 malformedError("for BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB " + in moveNext()
4275 *E = malformedError("bad bind info (bad opcode value 0x" + in moveNext()
5021 return malformedError(Twine("bad chained fixups: unknown version: ") + in getChainedFixupsHeader()
5024 return malformedError( in getChainedFixupsHeader()
5033 return malformedError(Twine("bad chained fixups: image starts offset ") + in getChainedFixupsHeader()
5040 return malformedError(Twine("bad chained fixups: image starts end ") + in getChainedFixupsHeader()
5082 return malformedError( in getChainedFixupsSegments()
5097 return malformedError("bad chained fixups: segment info" + Twine(I) + in getChainedFixupsSegments()
5185 return malformedError("bad chained fixups: unknown imports format: " + in getDyldChainedFixupTargets()
5197 return malformedError("bad chained fixups: imports end " + in getDyldChainedFixupTargets()
5202 return malformedError("bad chained fixups: imports end " + in getDyldChainedFixupTargets()
5247 return malformedError("bad chained fixups: symbol offset " + in getDyldChainedFixupTargets()