Skip to content

Bug: index out of bounds when a comment contains just a newline #1268

@emillon

Description

@emillon

Hi,

The following program crashes ocamlformat with an index out of bounds exception:

(*
*)

(bytes: 0x28 0x2a 0x0a 0x2a 0x29 0x0a)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions