Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7904079

Fix setting up length parameter for CXUnsavedFiles Struct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • 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

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

              Created:
              Updated: