[ruby-core:80006] [Ruby trunk Bug#13301] Bad value parse in IniFile Gem

From: exgrizz@...
Date: 2017-03-11 00:38:58 UTC
List: ruby-core #80006
Issue #13301 has been updated by Eric Griswold.


D'oh! This belongs against the gem, not the Ruby language. Feel free to close it.

----------------------------------------
Bug #13301: Bad value parse in IniFile Gem
https://bugs.ruby-lang.org/issues/13301#change-63423

* Author: Eric Griswold
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
A carefully (or accidentally) crafted value can cause Inifile#load to become confused when it apparently incorrectly parses a string as a scientific notation value.

The enclosed script should print "2017.1_26_57e7669". Instead it prints "Infinity"

---Files--------------------------------
bug-demo (250 Bytes)


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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next