public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/29578] New: Definition of SUN_LEN() is wrong @ 2022-09-16 23:30 bart.vanassche at gmail dot com 2022-09-17 6:47 ` [Bug libc/29578] " schwab@linux-m68k.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: bart.vanassche at gmail dot com @ 2022-09-16 23:30 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29578 Bug ID: 29578 Summary: Definition of SUN_LEN() is wrong Product: glibc Version: 2.38 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: bart.vanassche at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- $ PAGER= git grep -A1 'define SUN_LEN' socket/sys/un.h:# define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \ socket/sys/un.h- + strlen ((ptr)->sun_path)) An ampersand (&) is missing after (size_t). The commit that introduced this incorrect definition is d38cd08ca397 ("update from main archive 961229"). -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/29578] Definition of SUN_LEN() is wrong 2022-09-16 23:30 [Bug libc/29578] New: Definition of SUN_LEN() is wrong bart.vanassche at gmail dot com @ 2022-09-17 6:47 ` schwab@linux-m68k.org 2022-09-17 23:48 ` bart.vanassche at gmail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: schwab@linux-m68k.org @ 2022-09-17 6:47 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29578 Andreas Schwab <schwab@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTABUG Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> --- sun_path is an array and implicitly promotes to a pointer. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/29578] Definition of SUN_LEN() is wrong 2022-09-16 23:30 [Bug libc/29578] New: Definition of SUN_LEN() is wrong bart.vanassche at gmail dot com 2022-09-17 6:47 ` [Bug libc/29578] " schwab@linux-m68k.org @ 2022-09-17 23:48 ` bart.vanassche at gmail dot com 2022-09-18 11:27 ` schwab@linux-m68k.org 2022-10-10 7:35 ` schwab@linux-m68k.org 3 siblings, 0 replies; 5+ messages in thread From: bart.vanassche at gmail dot com @ 2022-09-17 23:48 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29578 --- Comment #2 from Bart Van Assche <bart.vanassche at gmail dot com> --- I created this report because UndefinedBehaviorSanitizer reports the following when using the SUN_LEN() macro: runtime error: member access within null pointer of type 'struct sockaddr_un' The above message may indicate a bug in the UndefinedBehaviorSanitizer. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/29578] Definition of SUN_LEN() is wrong 2022-09-16 23:30 [Bug libc/29578] New: Definition of SUN_LEN() is wrong bart.vanassche at gmail dot com 2022-09-17 6:47 ` [Bug libc/29578] " schwab@linux-m68k.org 2022-09-17 23:48 ` bart.vanassche at gmail dot com @ 2022-09-18 11:27 ` schwab@linux-m68k.org 2022-10-10 7:35 ` schwab@linux-m68k.org 3 siblings, 0 replies; 5+ messages in thread From: schwab@linux-m68k.org @ 2022-09-18 11:27 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29578 Andreas Schwab <schwab@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|NOTABUG |--- Last reconfirmed| |2022-09-18 Ever confirmed|0 |1 --- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> --- That should have been part of the original description. This is about the offsetof operation, not adress-of. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/29578] Definition of SUN_LEN() is wrong 2022-09-16 23:30 [Bug libc/29578] New: Definition of SUN_LEN() is wrong bart.vanassche at gmail dot com ` (2 preceding siblings ...) 2022-09-18 11:27 ` schwab@linux-m68k.org @ 2022-10-10 7:35 ` schwab@linux-m68k.org 3 siblings, 0 replies; 5+ messages in thread From: schwab@linux-m68k.org @ 2022-10-10 7:35 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29578 Andreas Schwab <schwab@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Version|2.38 |unspecified Target Milestone|--- |2.37 Resolution|--- |FIXED --- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> --- Fixed in 2.37. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-10 7:35 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-16 23:30 [Bug libc/29578] New: Definition of SUN_LEN() is wrong bart.vanassche at gmail dot com 2022-09-17 6:47 ` [Bug libc/29578] " schwab@linux-m68k.org 2022-09-17 23:48 ` bart.vanassche at gmail dot com 2022-09-18 11:27 ` schwab@linux-m68k.org 2022-10-10 7:35 ` schwab@linux-m68k.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).