Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2575

misaligned address in mongoc-client.c

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: 1.9.3
    • Component/s: libmongoc
    • Labels:
      None

      UBSAN is reporting the following problem, even when I compile without BSON_EXTRA_ALIGN:

      gridfs> fs <- gridfs(url = "mongodb+srv://readwrite:test@cluster0-84vdt.mongodb.net/test")
      mongoc/mongoc-client.c:279:11: runtime error: load of misaligned address 0x7ffd21a4a479 for type 'short int', which requires 2 byte alignment
      0x7ffd21a4a479: note: pointer points here
       00 00 00  00 69 89 1a 63 6c 75 73  74 65 72 30 2d 73 68 61  72 64 2d 30 30 2d 30 31  2d 38 34 76 64
                    ^
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            Jeroenooms Jeroen Ooms [X]
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: