Hoernchen has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/14682


Change subject: tell ubsan to ignore SUN_LEN
......................................................................

tell ubsan to ignore SUN_LEN

SUN_LEN is awful and ubsan will report this, so let's ignore it.

Change-Id: I0ff445072f1b46390c9f70b21d61c789e39358d5
---
M src/socket.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/82/14682/1

diff --git a/src/socket.c b/src/socket.c
index 1e303bf..c50af55 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -614,6 +614,9 @@
  * type and \a proto and optionally binds or connects it, depending on
  * the value of \a flags parameter.
  */
+#if defined(__clang__) && defined(SUN_LEN)
+__attribute__((no_sanitize("undefined")))
+#endif
 int osmo_sock_unix_init(uint16_t type, uint8_t proto,
                        const char *socket_path, unsigned int flags)
 {

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/14682
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I0ff445072f1b46390c9f70b21d61c789e39358d5
Gerrit-Change-Number: 14682
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <[email protected]>
Gerrit-MessageType: newchange

Reply via email to