diff -Nru ksh-93u+/debian/changelog ksh-93u+/debian/changelog --- ksh-93u+/debian/changelog 2013-01-02 18:41:55.000000000 +0100 +++ ksh-93u+/debian/changelog 2013-10-07 08:39:36.000000000 +0200 @@ -1,3 +1,11 @@ +ksh (93u+-1.3) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Fix ksh core dump or memory corruption + This occurs when #[some chars] is entered at interactive prompt. + + -- phi Mon, 07 Oct 2013 08:33:10 +0200 + ksh (93u+-1.2) testing-proposed-updates; urgency=low * Non-maintainer upload. diff -Nru ksh-93u+/debian/patches/fix-coredump-memcorrupt-pond-1st-char.patch ksh-93u+/debian/patches/fix-coredump-memcorrupt-pond-1st-char.patch --- ksh-93u+/debian/patches/fix-coredump-memcorrupt-pond-1st-char.patch 1970-01-01 01:00:00.000000000 +0100 +++ ksh-93u+/debian/patches/fix-coredump-memcorrupt-pond-1st-char.patch 2013-10-07 09:02:58.000000000 +0200 @@ -0,0 +1,27 @@ +Index: ksh-93u+/src/cmd/ksh93/edit/edit.c +=================================================================== +--- ksh-93u+.orig/src/cmd/ksh93/edit/edit.c 2012-01-18 16:57:15.000000000 +0100 ++++ ksh-93u+/src/cmd/ksh93/edit/edit.c 2013-10-07 08:59:54.182850845 +0200 +@@ -1661,6 +1661,8 @@ + off_t offset; + int ac=0,l,m,n,index1,index2; + char *cp, **argv, **av, **ar; ++ ++ argv=0; + if(!(hp=ep->sh->gd->hist_ptr)) + return(0); + if(*pattern=='#') +@@ -1738,8 +1740,11 @@ + mplast->next = mp; + mplast->next = 0; + } +- ep->hlist = (Histmatch_t**)argv; +- ep->hfirst = ep->hlist?ep->hlist[0]:0; ++ if(argv) ++ { ++ ep->hlist = (Histmatch_t**)argv; ++ ep->hfirst = ep->hlist[0]; ++ } + return(ep->hmax=ac); + } + diff -Nru ksh-93u+/debian/patches/series ksh-93u+/debian/patches/series --- ksh-93u+/debian/patches/series 2013-01-02 18:34:31.000000000 +0100 +++ ksh-93u+/debian/patches/series 2013-10-07 08:46:07.000000000 +0200 @@ -3,3 +3,4 @@ no-rpath.patch handle-removed-working-dir.patch fix-cd-builtin.patch +fix-coredump-memcorrupt-pond-1st-char.patch