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: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 16 Oct 2014 07:35:35 +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
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> ---
#define TASK_COMM_LEN 16
size_t name_len = strlen (name);
if (name_len >= TASK_COMM_LEN)
return ERANGE;
This will return ERANGE if the length of name is 16.
--
You are receiving this mail because:
You are on the CC list for the bug.