ฉันได้รับข้อผิดพลาดต่อไปนี้เมื่อเรียกใช้ rspec หลังจากที่ฉันเพิ่ม vcr gem การเรียกใช้ gem install psych -- --enable-bundled-libyaml
ตามที่แนะนำไม่สามารถแก้ปัญหาได้ ฉันใช้ rbenv และ ruby-build และฉันใช้ Ruby 2.1.1 ฉันต้องทำอย่างไรเพื่อแก้ไขปัญหานี้
SafeYAML Warning
----------------
You appear to have an outdated version of libyaml (0.1.4) installed on your system.
Prior to 0.1.6, libyaml is vulnerable to a heap overflow exploit from malicious YAML payloads.
For more info, see:
https://www.ruby-lang.org/en/news/2014/03/29/heap-overflow-in-yaml-uri-escape-parsing-cve-2014-2525/
The easiest thing to do right now is probably to update Psych to the latest version and enable
the 'bundled-libyaml' option, which will install a vendored libyaml with the vulnerability patched:
gem install psych -- --enable-bundled-libyaml