Skip to content

Possible ReDos in the read_directive method #995

@Akashkarmakar787

Description

@Akashkarmakar787

There is a possible ReDos issue
https://github.com/ruby/rdoc/blob/master/lib/rdoc/parser/ruby.rb#L2137 with string for example: '0'*54773 + '\x000:'

https://github.com/ruby/rdoc/blob/master/lib/rdoc/comment.rb#L100 with string ex: '\n'*106500100 + 'call-seq:' + 'a'*165100000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions