File: test-bufferoverflow.sh

package info (click to toggle)
dsh 0.25.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,132 kB
  • sloc: sh: 9,667; ansic: 1,102; makefile: 100
file content (9 lines) | stat: -rwxr-xr-x 331 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
#! /bin/sh

# check if dsh segfaults with an exceedingly long HOME variable.

HOME=/this/is/absurdly/long/and/it/is/very/very/bad/for/your/health
HOME=${HOME}${HOME}${HOME}${HOME}${HOME}
HOME=${HOME}${HOME}${HOME}${HOME}${HOME}
HOME=${HOME}${HOME}${HOME}${HOME}${HOME}
HOME=${HOME}${HOME}${HOME}${HOME}${HOME} ./dsh -m l -r echo w