Forum: Ruby-core [ruby-trunk - Bug #7744][Open] Fix signed integer overflows Github #242

Posted by zzak (Zachary Scott) (Guest)
on 2013-01-27 18:14
(Received via mailing list)
Issue #7744 has been reported by zzak (Zachary Scott).

----------------------------------------
Bug #7744: Fix signed integer overflows Github #242
https://bugs.ruby-lang.org/issues/7744

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee:
Category: build
Target version: next minor
ruby -v: 2.0.0


=begin
From ((<github issue 242|URL:https://github.com/ruby/ruby/pull/242>)):

((*Signed integer overflow is undefined behavior in C. Many compilers 
assume no signed integer overflows and even optimize away overflow 
checks. The -fno-strict-overflow flag works around this issue in gcc, 
but doesn't fix the fundamentally broken code.*))

((*This patchset fixes signed integer overflows in time.c, ossl.c, and 
bigdecimal.c.*))

I've attached the associated patch.
=end
Posted by ko1 (Koichi Sasada) (Guest)
on 2013-02-18 01:12
(Received via mailing list)
Issue #7744 has been updated by ko1 (Koichi Sasada).

Assignee set to nobu (Nobuyoshi Nakada)
Target version changed from next minor to 2.1.0


----------------------------------------
Bug #7744: Fix signed integer overflows Github #242
https://bugs.ruby-lang.org/issues/7744#change-36464

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.1.0
ruby -v: 2.0.0


=begin
From ((<github issue 242|URL:https://github.com/ruby/ruby/pull/242>)):

((*Signed integer overflow is undefined behavior in C. Many compilers 
assume no signed integer overflows and even optimize away overflow 
checks. The -fno-strict-overflow flag works around this issue in gcc, 
but doesn't fix the fundamentally broken code.*))

((*This patchset fixes signed integer overflows in time.c, ossl.c, and 
bigdecimal.c.*))

I've attached the associated patch.
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.