tech-userlevel archive

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

Re: getxxxbyzzz_r test suite?

In article <>,
Edgar Fuß  <> 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.


Home | Main Index | Thread Index | Old Index