This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] avoid buffer overflow in sunrpc clnt_create (BZ #22542)


Dmitry V. Levin wrote:
Do people really expect that?  Assuming that people are aware
of linux kernel behaviour, why would they expect that?

These days, it's because strncpy format is obsolete and is not something programmers are ordinarily aware of. When in doubt (which there seems to be here), glibc should use null-terminated strings rather than strncpy format.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]