This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/17478] Fix off-by-one error in pthread_setname_np()
- From: "ryao at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 16 Oct 2014 14:44:19 +0000
- Subject: [Bug nptl/17478] Fix off-by-one error in pthread_setname_np()
- Auto-submitted: auto-generated
- References: <bug-17478-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17478
Richard Yao <ryao at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #6 from Richard Yao <ryao at gentoo dot org> ---
The kernel restricts the name of the length to 15 characters. The 16th byte is
always a NULL byte. `strlen()` does not count the NULL byte.
--
You are receiving this mail because:
You are on the CC list for the bug.