Project

General

Profile

Bug #4456

Time#strftime で %F 指定子に大きな幅を指定した際の不具合

Added by tadf (tadayoshi funaba) over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
-
Backport:
[ruby-dev:43284]

Description

=begin
$ ruby -e "Time.now.strftime('%100000F')"
-e:1: [BUG] Segmentation fault
ruby 1.9.3dev (2011-03-02) [i686-linux]

-- Control frame information -----------------------------------------------
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :(null)
c:0003 p:0023 s:0006 b:0006 l:000d2c d:00034c EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000d2c d:000d2c TOP

-- Ruby level backtrace information ----------------------------------------
-e:1:in `'
Segmentation fault
=end


Files

strftime.patch (530 Bytes) strftime.patch ngoto (Naohisa Goto), 07/15/2011 06:41 PM

Related issues

Related to Ruby master - Bug #4457: Time#strftime で %z 指定子などに大きな幅を指定した際の不具合Closedakr (Akira Tanaka)03/02/2011Actions

Also available in: Atom PDF