]> code.ossystems Code Review - openembedded-core.git/commit
tinylogin: fix segfault from crypt()
authorSaul Wold <sgw@linux.intel.com>
Fri, 5 Apr 2013 17:09:31 +0000 (10:09 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Apr 2013 17:21:12 +0000 (18:21 +0100)
commit03034e0f5dff426ee7adaa2364082dd47c23260a
tree3f019599ae06da7cd4ec0e936c188070eccf93e8
parenta51041db57666c60f39c4effa4aceb53cae815dc
tinylogin: fix segfault from crypt()

In glibc 2.17, crypt() now expects 2 valid chars for the seed or
it will error out and return a NULL. The tinylogin code took the
result from crypt directly into a strcmp() which caused a segfault

Tinylogin has been deperacted, busybox now has login support, I will
investigate using busybox login support for 1.5.

[YOCTO #4097]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/tinylogin/tinylogin-1.4/glibc_crypt_fix.patch [new file with mode: 0644]
meta/recipes-core/tinylogin/tinylogin_1.4.bb