Fix setting up length parameter for CXUnsavedFiles Struct

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      On big endian platforms, jextract build fails during the verify task with a SIGILL crash due to incorrect handling of the CXUnsavedFile struct. When jextract makes a downcall to clang_reparseTranslationUnit_Impl, it incorrectly sets the third field as an INT instead of a LONG. On big endian architectures, this leads to an improper memory layout for the struct. As a result, clang_reparseTranslationUnit_Impl receives invalid data, causing the crash

            Assignee:
            Varada M
            Reporter:
            Varada M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: