Change in ...libosmocore[master]: tell ubsan to ignore SUN_LEN

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Hoernchen gerrit-no-reply at lists.osmocom.org
Fri Jul 5 15:41:49 UTC 2019


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 <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190705/abb15a6b/attachment.htm>


More information about the gerrit-log mailing list