(ITS#9163) warning: logical not is only applied to the left hand side of bitwise operator

2020-02-06 Thread noloader
Full_Name: Jeffrey Walton Version: 2.4.47 OS: OS X 10.10 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (100.18.0.145) Hi Everyone. I'm building OpenSLAP 2.4.47 from the release tarball on OS X. Clang is triggering a warning that may be of interest: gcc -g2 -O2 -march=native

Re: (ITS#8988) Undefined Behavior in slapadd

2019-06-08 Thread noloader
On Sat, Jun 8, 2019 at 3:47 AM Howard Chu wrote: > > Jeffrey Walton wrote: > > On Fri, Jun 7, 2019 at 2:37 PM Howard Chu wrote: > >> > >> Jeffrey Walton wrote: > >>> On Fri, Jun 7, 2019 at 10:08 AM Howard Chu wrote: > > Jeffrey Walton wrote: > > On Fri, Jun 7, 2019 at 9:59 AM

Re: (ITS#8988) Undefined Behavior in slapadd

2019-06-08 Thread noloader
On Fri, Jun 7, 2019 at 2:37 PM Howard Chu wrote: > > Jeffrey Walton wrote: > > On Fri, Jun 7, 2019 at 10:08 AM Howard Chu wrote: > >> > >> Jeffrey Walton wrote: > >>> On Fri, Jun 7, 2019 at 9:59 AM Howard Chu wrote: > > noloa...@gmail.com wrote: > > On Fri, Jun 7, 2019 at 9:32 AM

Re: (ITS#8988) Undefined Behavior in slapadd

2019-06-07 Thread noloader
On Fri, Jun 7, 2019 at 10:08 AM Howard Chu wrote: > > Jeffrey Walton wrote: > > On Fri, Jun 7, 2019 at 9:59 AM Howard Chu wrote: > >> > >> noloa...@gmail.com wrote: > >>> On Fri, Jun 7, 2019 at 9:32 AM Howard Chu wrote: > > noloa...@gmail.com wrote: > ... > > I encourage

Re: (ITS#8988) Undefined Behavior in slapadd

2019-06-07 Thread noloader
On Fri, Jun 7, 2019 at 9:59 AM Howard Chu wrote: > > noloa...@gmail.com wrote: > > On Fri, Jun 7, 2019 at 9:32 AM Howard Chu wrote: > >> > >> noloa...@gmail.com wrote: > >> ... > >>> I encourage OpenLDAP to fix the undefined behavior. OpenLDAP is an > >>> important project, and the undefined

Re: (ITS#8988) Undefined Behavior in slapadd

2019-06-07 Thread noloader
On Fri, Jun 7, 2019 at 9:32 AM Howard Chu wrote: > > noloa...@gmail.com wrote: > ... > > I encourage OpenLDAP to fix the undefined behavior. OpenLDAP is an > > important project, and the undefined behavior is causing too many > > tangential problems. > > Undefined behavior is not a bug, nor is it

Re: (ITS#8988) Undefined Behavior in slapadd

2019-06-06 Thread noloader
On Thu, Jun 6, 2019 at 7:39 PM Quanah Gibson-Mount wrote: > > --On Thursday, March 07, 2019 10:10 AM + noloa...@gmail.com wrote: > > > Full_Name: JW > > Version: 2.4.47 > > OS: Linux (Fedora 29, x86_64, fully patched) > > URL: ftp://ftp.openldap.org/incoming/ > > Submission from: (NULL)

(ITS#8989) Undefined Behavior in id2entry.c

2019-03-07 Thread noloader
Full_Name: JW Version: 2.4.47 OS: Linux (Fedora 29, x86_64, fully patched) URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (151.196.22.177) CFLAGS includes -fsanitize=undefined. These can be cleared with 1U << 31. id2entry.c:622:9: runtime error: left shift of 1 by 31 places

(ITS#8988) Undefined Behavior in slapadd

2019-03-07 Thread noloader
Full_Name: JW Version: 2.4.47 OS: Linux (Fedora 29, x86_64, fully patched) URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (151.196.22.177) I added -fsanitize=undefined to CFLAGS. > Starting test001-slapadd for mdb... running defines.sh Running slapadd to build slapd

(ITS#8987) Dirty compile without -Wall and friends

2019-03-07 Thread noloader
Full_Name: JW Version: 2.4.47 OS: Linux (Fedora 29, x86_64, fully patched) URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (151.196.22.177) I'm building OpenLDAP 2.4.47 from sources on Fedora 29, x86_64. These look like a valid complaints: cc -g2 -O2 -fsanitize=undefined