bugzilla-daemon at mindrot.org
2005-Nov-01 14:52 UTC
[Bug 1108] strdup from openbsd-compat/bsd-misc.c is broken
http://bugzilla.mindrot.org/show_bug.cgi?id=1108 Summary: strdup from openbsd-compat/bsd-misc.c is broken Product: Portable OpenSSH Version: 4.2p1 Platform: All URL: http://www.freebsd.org/cgi/query-pr.cgi?pr=87067 OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Miscellaneous AssignedTo: bitbucket at mindrot.org ReportedBy: antoine.brodin at laposte.net This bug has been reported to FreeBSD but the submitter didn't report it to OpenSSH : http://www.freebsd.org/cgi/query-pr.cgi?pr=87067 The check if (strlcpy(cp, str, len) != len) is bogus because strlcpy will return strlen(str) i.e. len-1 so strdup will always return NULL. This affects OS that don't have strdup (I don't know who they are) ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2005-Nov-01 22:09 UTC
[Bug 1108] strdup from openbsd-compat/bsd-misc.c is broken
http://bugzilla.mindrot.org/show_bug.cgi?id=1108 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from dtucker at zip.com.au 2005-11-02 09:09 ------- Fixed, thanks. The only platform known to be affected is Ultrix, hence why it was not caught earlier :-) ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Possibly Parallel Threads
- Possible failure to scrub data in file 'openbsd-compat/bsd-cray.c' in OpenSSH-7.1p1
- bug in openbsd-compat/bsd-misc.c ?
- [Bug 2608] New: Signed overflow in openbsd-compat/strlcpy.c
- [LLVMdev] CommandLine.cpp:189: error: `strdup' undeclared
- [LLVMdev] CommandLine.cpp:189: error: `strdup' undeclared