Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andi8086
Copy link

@andi8086 andi8086 commented Mar 5, 2024

Here I tried to include fixes for

  • The open issue with buffer overflow
  • Missing UTF-8 support
  • non-working ruby includes

Please note that especially the buffer check might change the original intention of the code to explicitely
behave as the original hardware state machine. I have no way of checking what the original hardware does.
Also, original hardware did not support UTF-8, however in modern terminal emulators, UTF-8 is a must.

I understand that the original author might not want to include these changes because of that. But everybody
else, feel free to do so :)

kr

andi8087 and others added 3 commits March 5, 2024 10:30
As described by `astoeckel`, if feeding

```
echo -en "\e["`printf '99;%.0s' {0..15}`m | ./test
```

parameters land behind the cb->params array,
which is not a sever issue since the `num_params` element
behind the buffer gets reset afterwards. However, he
suggested that this undefined behavior should be fixed.

I implemented his suggestion in this commit.

Signed-off-by: Andreas J. Reichel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants