[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8989) Undefined Behavior in id2entry.c



noloader@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) (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 cannot be
> represented in type 'int'
> id2entry.c:691:11: runtime error: left shift of 1 by 31 places cannot be
> represented in type 'int'
> id2entry.c:708:22: runtime error: left shift of 1 by 31 places cannot be
> represented in type 'int'
> id2entry.c:709:20: runtime error: left shift of 1 by 31 places cannot be
> represented in type 'int'

Fixed in git


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/