ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:81483] [Ruby trunk Bug#13615] YAML parser stops processing at the first newline when byte order mark is present
       [not found] <redmine.issue-13615.20170531031414@ruby-lang.org>
@ 2017-05-31  3:14 ` asari.ruby
  2017-06-01  3:45 ` [ruby-core:81496] [Ruby trunk Bug#13615][Third Party's Issue] " hsbt
  2017-10-22 14:39 ` [ruby-core:83507] [Ruby trunk Bug#13615] " asari.ruby
  2 siblings, 0 replies; 3+ messages in thread
From: asari.ruby @ 2017-05-31  3:14 UTC (permalink / raw
  To: ruby-core

Issue #13615 has been reported by hasari (Hiro Asari).

----------------------------------------
Bug #13615: YAML parser stops processing at the first newline when byte order mark is present
https://bugs.ruby-lang.org/issues/13615

* Author: hasari (Hiro Asari)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
When the input has byte order mark, the YAML parser stops processing the input upon seeing the first newline.

I believe this is a violation of YAML specification. [[http://www.yaml.org/spec/1.2/spec.html#id2771184]]

~~~
[1] pry(main)> RUBY_DESCRIPTION
=> "ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]"
[2] pry(main)> require 'yaml'
=> true
[3] pry(main)> YAML.load("a: b\nc: d")
=> {"a"=>"b", "c"=>"d"}
[4] pry(main)> YAML.load("\xEF\xBB\xBF" + "a: b\nc: d")
=> {"a"=>"b"}
~~~



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:81496] [Ruby trunk Bug#13615][Third Party's Issue] YAML parser stops processing at the first newline when byte order mark is present
       [not found] <redmine.issue-13615.20170531031414@ruby-lang.org>
  2017-05-31  3:14 ` [ruby-core:81483] [Ruby trunk Bug#13615] YAML parser stops processing at the first newline when byte order mark is present asari.ruby
@ 2017-06-01  3:45 ` hsbt
  2017-10-22 14:39 ` [ruby-core:83507] [Ruby trunk Bug#13615] " asari.ruby
  2 siblings, 0 replies; 3+ messages in thread
From: hsbt @ 2017-06-01  3:45 UTC (permalink / raw
  To: ruby-core

Issue #13615 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Third Party's Issue
Assignee set to hsbt (Hiroshi SHIBATA)
Target version set to 2.5

Could you file this issue to https://github.com/ruby/psych ?

----------------------------------------
Bug #13615: YAML parser stops processing at the first newline when byte order mark is present
https://bugs.ruby-lang.org/issues/13615#change-65206

* Author: hasari (Hiro Asari)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 2.5
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
When the input has byte order mark, the YAML parser stops processing the input upon seeing the first newline.

I believe this is a violation of YAML specification. [[http://www.yaml.org/spec/1.2/spec.html#id2771184]]

~~~
[1] pry(main)> RUBY_DESCRIPTION
=> "ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]"
[2] pry(main)> require 'yaml'
=> true
[3] pry(main)> YAML.load("a: b\nc: d")
=> {"a"=>"b", "c"=>"d"}
[4] pry(main)> YAML.load("\xEF\xBB\xBF" + "a: b\nc: d")
=> {"a"=>"b"}
~~~



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:83507] [Ruby trunk Bug#13615] YAML parser stops processing at the first newline when byte order mark is present
       [not found] <redmine.issue-13615.20170531031414@ruby-lang.org>
  2017-05-31  3:14 ` [ruby-core:81483] [Ruby trunk Bug#13615] YAML parser stops processing at the first newline when byte order mark is present asari.ruby
  2017-06-01  3:45 ` [ruby-core:81496] [Ruby trunk Bug#13615][Third Party's Issue] " hsbt
@ 2017-10-22 14:39 ` asari.ruby
  2 siblings, 0 replies; 3+ messages in thread
From: asari.ruby @ 2017-10-22 14:39 UTC (permalink / raw
  To: ruby-core

Issue #13615 has been updated by hasari (Hiro Asari).


I've opened https://github.com/ruby/psych/issues/331.

----------------------------------------
Bug #13615: YAML parser stops processing at the first newline when byte order mark is present
https://bugs.ruby-lang.org/issues/13615#change-67525

* Author: hasari (Hiro Asari)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 2.5
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
When the input has byte order mark, the YAML parser stops processing the input upon seeing the first newline.

I believe this is a violation of YAML specification. [[http://www.yaml.org/spec/1.2/spec.html#id2771184]]

~~~
[1] pry(main)> RUBY_DESCRIPTION
=> "ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]"
[2] pry(main)> require 'yaml'
=> true
[3] pry(main)> YAML.load("a: b\nc: d")
=> {"a"=>"b", "c"=>"d"}
[4] pry(main)> YAML.load("\xEF\xBB\xBF" + "a: b\nc: d")
=> {"a"=>"b"}
~~~



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-22 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-13615.20170531031414@ruby-lang.org>
2017-05-31  3:14 ` [ruby-core:81483] [Ruby trunk Bug#13615] YAML parser stops processing at the first newline when byte order mark is present asari.ruby
2017-06-01  3:45 ` [ruby-core:81496] [Ruby trunk Bug#13615][Third Party's Issue] " hsbt
2017-10-22 14:39 ` [ruby-core:83507] [Ruby trunk Bug#13615] " asari.ruby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).