[CDRIVER-1051] ASAN/UBSAN: misaligned address Created: 13/Dec/15  Updated: 25/Jul/22  Resolved: 18/Jul/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Improvement Priority: Major - P3
Reporter: Jeroen Ooms [X] Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-1055 Unit Tests Under -fsanitize=address T... Closed
related to CDRIVER-4434 Reducing Warnings of Misaligned Addre... Closed
is related to CDRIVER-747 Test with address sanitizer Closed

 Description   

CRAN reports some misaligned address errors for mongolite:

I did compile the with

-DBSON_EXTRA_ALIGN

. Is there something I can do to fix this?



 Comments   
Comment by Jeroen Ooms [X] [ 19/Jul/16 ]

Actually the warnings appear without BSON_EXTRA_ALIGN.

Comment by Hannes Magnusson [ 18/Jul/16 ]

There isn't anything we can do about the alignment warning when you compile with BSON_EXTRA_ALIGN. We recommend to set that to off.

As for the overflow warning in the scram mechanism, if you can still reproduce that please file a separate ticket for it.

We are working on automatic similar checks in our CI infrastructure btw, se linked tickets.

Comment by Jeroen Ooms [X] [ 29/Feb/16 ]

FYI here are ASAN/UBSAN for GCC6:

My repo maintainers keep complaining about this; hopefully these can be fixed soon

Generated at Wed Feb 07 21:11:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.