Skip to content

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:

Steps to reproduce:

example command execution:

  1. screen -dmS dash
  2. 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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information