Re: [RFC] malloced getpw/grxxx/_r functions for bb

2014-08-20 Thread Laszlo Papp
How do you prove that your rewrite from scratch is robust? On Mon, Aug 18, 2014 at 8:50 PM, tito farmat...@tiscali.it wrote: On Tuesday 05 August 2014 20:16:04 Denys Vlasenko wrote: On Mon, Aug 4, 2014 at 7:06 PM, Laszlo Papp lp...@kde.org wrote: sudo busybox adduser

Re: [RFC] malloced getpw/grxxx/_r functions for bb

2014-08-20 Thread tito
On Wednesday 20 August 2014 08:12:08 you wrote: How do you prove that your rewrite from scratch is robust? Hi, I've done minimal testing through the included test program and I've done a few valgrind tet runs on every revision until now. Still I cannot prove any robustness. That is why I've

Re: [RFC] malloced getpw/grxxx/_r functions for bb

2014-08-20 Thread Laszlo Papp
On Wed, Aug 20, 2014 at 8:12 AM, tito farmat...@tiscali.it wrote: On Wednesday 20 August 2014 08:12:08 you wrote: How do you prove that your rewrite from scratch is robust? Hi, I've done minimal testing through the included test program and I've done a few valgrind tet runs on every revision

Re: [RFC] malloced getpw/grxxx/_r functions for bb

2014-08-20 Thread tito
On Wednesday 20 August 2014 09:25:43 you wrote: TDD You would like to suggest some of this test cases? The most obvious I've already done and removed the code from the test program. What I've tested so far: 1) relevant file is missing - return error 2) user supplied buffer to small - return

Re: [RFC] malloced getpw/grxxx/_r functions for bb

2014-08-20 Thread tito
On Monday 18 August 2014 21:50:44 tito wrote: On Tuesday 05 August 2014 20:16:04 Denys Vlasenko wrote: On Mon, Aug 4, 2014 at 7:06 PM, Laszlo Papp lp...@kde.org wrote: sudo busybox adduser

[RFC] malloced getpw/grxxx/_r functions for bb

2014-08-18 Thread tito
On Tuesday 05 August 2014 20:16:04 Denys Vlasenko wrote: On Mon, Aug 4, 2014 at 7:06 PM, Laszlo Papp lp...@kde.org wrote: sudo busybox adduser f passwd: unknown user