[Bug 3152] New: #ifdef around memmem() is invalid.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Apr 23 05:12:13 AEST 2020


https://bugzilla.mindrot.org/show_bug.cgi?id=3152

            Bug ID: 3152
           Summary: #ifdef around memmem() is invalid.
           Product: Portable OpenSSH
           Version: 8.2p1
          Hardware: Other
                OS: Windows 10
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Miscellaneous
          Assignee: unassigned-bugs at mindrot.org
          Reporter: balu.gajjala at gmail.com

Different #ifdef used for memmem() declaration and definition.

https://github.com/openssh/openssh-portable/blob/d6cc76176216fe3fac16cd20d148d75cb9c50876/openbsd-compat/openbsd-compat.h#L76 

#if defined(HAVE_DECL_MEMMEM) && HAVE_DECL_MEMMEM == 0
void *memmem(const void *, size_t, const void *, size_t);
#endif

https://github.com/openssh/openssh-portable/blob/d6cc76176216fe3fac16cd20d148d75cb9c50876/openbsd-compat/memmem.c#L32
still uses #ifndef HAVE_MEMMEM.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list