Actions
Bug #14756
closed`Exception` may cause SEGV when `#backtrace` returns a string
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.0dev (2018-05-13 trunk 63413) [x86_64-linux]
Backport:
Description
This code causes SEGV, because print_backtrace
expects second argument to be an array but a string is given.
class Exception
def backtrace
"backtrace"
end
end
"".a
Also in ruby 2.3.7, 2.4.4, 2.5.1.
Actions
Like0
Like0Like0Like0Like0