# server: fix procscan stat parsing and prevent shell tail-exec in screen detection test \(\#86\) · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/ae2f74485375c2eb354ed7be73d33ad7b60ab757)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: ae2f74485375c2eb354ed7be73d33ad7b60ab757

Requested commit: ae2f74485375c2eb354ed7be73d33ad7b60ab757

Commit: ae2f74485375c2eb354ed7be73d33ad7b60ab757

Tree: fc39638a0fa5e99f1245ed0758a3622d2998a0e8

Author: Simone

Committer: GitHub

## Message

```
server: fix procscan stat parsing and prevent shell tail-exec in screen detection test (#86)

* server: extract comm between parens in read_stat

* server: prevent shell tail-exec in screen detection procscan test

* server: assert read_stat comm matches /proc/<pid>/comm

---------

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
```

## Parents

- [30a546ba6ac0a5c661cfef9cb2a28a443e3c084f](https://git.cafe/lucenx/signaltty/commit/30a546ba6ac0a5c661cfef9cb2a28a443e3c084f?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/ae2f74485375c2eb354ed7be73d33ad7b60ab757?format=markdown)
