Commit Graph

5 Commits

Author SHA1 Message Date
Arthur Sonzogni 469264d88f Add dashed arrow. (#69)
Bug:https://github.com/ArthurSonzogni/Diagon/issues/68
2023-08-27 10:55:16 +02:00
ArthurSonzogni 01ac8690d5 Fix CVE-2023-27390
"Self" message are not supported, but this was not checked. This
triggered the error "Something is wrong", and then caused a buffer
overflow.

Bug:https://github.com/ArthurSonzogni/Diagon/issues/65
2023-05-08 17:18:24 +02:00
ArthurSonzogni 94cd2f901c Add fuzzer 2022-11-20 11:32:02 +01:00
tg-m 3a1dfe84ab Add support for new lines in Sequence (#40)
* Add support for new lines in Sequence

When using `diagon Sequence` it is not possible (at least I couldn't
find a way) to add new lines to the messages in the Sequence submodule.

This patch adds parameter `--new_lines_at_bsn` that results in
substituting literal `\n` with new lines.

Example:

```bash
$ echo "Alice -> Bob: send(\n  msg="Hello...",\n  length=8,\n)" | \
       diagon Sequence --new_lines_at_bsn=true
```

output:
```
┌─────┐          ┌───┐
│Alice│          │Bob│
└──┬──┘          └─┬─┘
   │               │
   │send(          │
   │  msg=Hello...,│
   │  length=8,    │
   │)              │
   │──────────────>│
┌──┴──┐          ┌─┴─┐
│Alice│          │Bob│
└─────┘          └───┘
```

* Add tests & refactor.

Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2022-06-07 22:06:59 +02:00
Arthur Sonzogni aab521f828 Add examples. 2018-02-08 23:16:24 +01:00