Commit 65bf3d0
committed
Error on dubious characters in ending messages
Curly braces and newlines can allow arbitrary messages to be sent
to an engine. Do not allow these characters to be sent in
end-of-game messages.
Add tests to make sure an exception is raised for invalid characters.1 parent a1f16f8 commit 65bf3d0
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2508 | 2508 | | |
2509 | 2509 | | |
2510 | 2510 | | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
2511 | 2514 | | |
2512 | 2515 | | |
2513 | 2516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3752 | 3752 | | |
3753 | 3753 | | |
3754 | 3754 | | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
| 3760 | + | |
| 3761 | + | |
| 3762 | + | |
| 3763 | + | |
| 3764 | + | |
| 3765 | + | |
| 3766 | + | |
| 3767 | + | |
| 3768 | + | |
| 3769 | + | |
| 3770 | + | |
3755 | 3771 | | |
3756 | 3772 | | |
3757 | 3773 | | |
| |||
0 commit comments