ruby on rails - Why RVM requires YAML? -


while installing rvm from, suggested provide yaml source tar well. don't know why yaml needed rvm? ( link :-https://github.com/rvm/rvm-site/blob/master/content/rvm/offline.md) can install separate gem , right?

please provide insights.

yaml part of ruby's standard library , shipped ruby itself. in order compile ruby yaml support, need libyaml installed. since yaml quite popular in ruby , e.g. used specify metadata in packaged rubygems, ruby without yaml not useful nowadays.

now, time ago, there a pretty nasty bug in libyaml (the library used ruby parse , generate yaml). in versions <= 0.1.4, possible execute arbitrary code making ruby process parse specially crafted yaml source.

because of this, rvm downloads , compiles up-to-date version of libyaml ensure compiles rubies safe vulnerability.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -