(
Jump to the original submission)
Sun 22 Mar 2009 09:27:40 AM UTC, comment #9:
GNU gv 3.6.7 has been released. It contains the bug fix, so I can close this bug.
|
Fri 20 Mar 2009 08:35:38 AM UTC, comment #8:
That's great. Thanks.
|
Thu 19 Mar 2009 06:59:23 AM UTC, comment #7:
GNU gv 3.6.7 will be released this weekend.
|
Wed 18 Mar 2009 05:40:31 PM UTC, comment #6:
Can a release be made to correct this?
It is a problem also on Solaris systems as their libc does not implement strndup.
|
Sun 28 Sep 2008 06:29:54 AM UTC, comment #5:
Fixed in CVS by providing an strndup implementation called GNU_strndup und using it instead of strndup.
|
Sat 27 Sep 2008 05:35:53 AM UTC, comment #4:
Thanks. The next release will contain the fix as announced.
|
Sat 27 Sep 2008 12:17:22 AM UTC, comment #3:
Yes, that does compile now, thanks!
|
Fri 26 Sep 2008 03:37:51 PM UTC, comment #2:
Could you please add the following code at the beginning of src/secsscanf.c just after the includes and report me if it helps? If so, I will modify the configure script to conditionally insert this code if needed.
/* begin test code */
size_t strnlen(const char *s, size_t len)
{
size_t i;
for(i=0; i<len && *(s+i); i++);
return i;
}
char* strndup (char const *s, size_t n)
{
size_t len = strnlen (s, n);
char *new = malloc (len + 1);
if (new == NULL)
return NULL;
new[len] = '\0';
return memcpy (new, s, len);
}
/* end test code */
|
Fri 26 Sep 2008 01:49:45 PM UTC, comment #1:
Thanks for the bug report. Obviously the patch from "2008-09-09 Olaf Kirch <okir@suse.de>" introduces the usage of "strndup". The purpose is to make calls to sscanf overflow free.
I'll check what can be done soon.
|
Fri 26 Sep 2008 07:39:45 AM UTC, original submission:
Trying to compile gv 3.6.6 on Mac OS X 10.4.11 Intel with Xcode 2.5 I get this:
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_strndup
3.6.5 did not have this problem.
My understanding based on some brief Google research is that strndup does not exist on Mac OS X.
http://www.google.com/search?q=strndup+mac
|
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Follow 7 latest changes.