tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: getxxxbyzzz_r test suite?



In article <20131210170144.GE62384%trav.math.uni-bonn.de@localhost>,
Edgar Fuß  <ef%math.uni-bonn.de@localhost> wrote:
>EF> Sorry, I meant getpwnam_r(), getgrnam_r() and friends.
>CZ> No, there are none but again, they should be easy to implement based 
>CZ> on the hostent ones.
>I have no idea how to do that. Read: I don't know what to test. I.e.: 
>what's the critical situation in which a broken getpwnam_r() will go wrong?
>It which way can it go wrong?

It can core dump, it can leak memory, it can return the wrong results.
I'll see if I have the time to write a small test skeleton people can
use to add more tests.

christos



Home | Main Index | Thread Index | Old Index