Buffer overflow on 5.0.0 when using the "-X stuff" command line switch
Description:
After upgrading from 4.09.01 to 5.0.0, the "-X stuff" command line switch seems to always buffer overflow. Downgrading to 4.09.01 fixes this. I've reported this upstream, but the upstream maintainer was not able to reproduce on Ubuntu and asked me to start here.
Additional info:
- package version(s): 5.0.1
- config and/or log files:
- link to upstream bug report, if any: https://savannah.gnu.org/bugs/index.php?66142
Steps to reproduce:
example command execution:
- screen -dmS dash
- screen -S dash -X stuff "ls"
After (2) observe:
*** buffer overflow detected ***: terminated
Aborted (core dumped)
Note, the length of the string after "stuff" does not seem to matter, and happens as low as 2 characters. I ran into this problem when a script i have failed right after upgrading and rebooting. The script was sending a much longer string, but did not overflow. Downgrading from 5.0.0 back to 4.9.1 fixed the issue.