Bug#392669: /usr/sbin/sshd: off-by-one error in function 'xmmap'

2006-10-13 Thread Justin Pryzby
> Hi Justin, > > On Fri, Oct 13, 2006 at 07:45:44PM -0400, Justin Pryzby wrote: >> > The problem, reduced to a simpler form, is shown in the following >> > example: >> > >> > [EMAIL PROTECTED] [~] cat t.c >> > #include >> > int >> > main() >> > { >> > char string[4]="1234

Bug#392669: /usr/sbin/sshd: off-by-one error in function 'xmmap'

2006-10-13 Thread Jochen Voß
Hi Justin, On Fri, Oct 13, 2006 at 07:01:51PM -0400, Justin Pryzby wrote: > > #define MM_SWAP_TEMPLATE "/var/run/sshd.mm." > > if (address == (void *)MAP_FAILED) { > > char tmpname[sizeof(MM_SWAP_TEMPLATE)] = MM_SWAP_TEMPLATE; > > int tmpfd; > >

Bug#392669: /usr/sbin/sshd: off-by-one error in function 'xmmap'

2006-10-13 Thread Justin Pryzby
> Hi Justin, > > On Fri, Oct 13, 2006 at 07:01:51PM -0400, Justin Pryzby wrote: >> > #define MM_SWAP_TEMPLATE "/var/run/sshd.mm." >> > if (address == (void *)MAP_FAILED) { >> > char tmpname[sizeof(MM_SWAP_TEMPLATE)] = >> MM_SWAP_TEMPLATE; >> > int

Bug#392669: /usr/sbin/sshd: off-by-one error in function 'xmmap'

2006-10-13 Thread Justin Pryzby
user [EMAIL PROTECTED] usertag 392669 not-a-bug thanks > Package: openssh-server > Version: 1:4.3p2-5 > Severity: normal > File: /usr/sbin/sshd > > Hello, > > recently I discovered the following bit of code in the source file > "openssh-4.3p2/openbsd-compat/xmmap.c" (function 'xmmap', around line

Bug#392669: /usr/sbin/sshd: off-by-one error in function 'xmmap'

2006-10-12 Thread Jochen Voss
Package: openssh-server Version: 1:4.3p2-5 Severity: normal File: /usr/sbin/sshd Hello, recently I discovered the following bit of code in the source file "openssh-4.3p2/openbsd-compat/xmmap.c" (function 'xmmap', around line 51): #define MM_SWAP_TEMPLATE "/var/run/sshd.mm." i