Issue #6247 has been updated by tadf (tadayoshi funaba).

Assignee changed from tadf (tadayoshi funaba) to akr (Akira Tanaka)


----------------------------------------
Bug #6247: Range not checked for day of year
https://bugs.ruby-lang.org/issues/6247#change-25726

Author: rubysubmit (Ruby Submit)
Status: Assigned
Priority: Low
Assignee: akr (Akira Tanaka)
Category: 
Target version: 
ruby -v: ruby 1.9.2p290 


File: strftime.c 

case 'j':	/* day of the year, 001 - 366 */
			FMT('0', 3, "d", vtm->yday);
			continue;

The range for the vtm->yday function is not checked as many of the other values are before formatting. The end result allows the day of year to be up to the size of a ushort.



-- 
http://bugs.ruby-lang.org/