lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #9378] apps/smtp: Fix server argument length checkin


From: Axel Lin
Subject: [lwip-devel] [patch #9378] apps/smtp: Fix server argument length checking
Date: Wed, 14 Jun 2017 09:19:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?9378>

                 Summary: apps/smtp: Fix server argument length checking
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Wed 14 Jun 2017 01:19:58 PM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The strnlen() function returns strlen(s), if that is less than maxlen, or
maxlen if there is no null terminating ('\0') among the first maxlen
characters pointed to by s.

We cannot detect if server argument is too long with strnlen() because len
never greater than SMTP_MAX_SERVERNAME_LEN.
Switch back to strlen() instead.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 14 Jun 2017 01:19:58 PM UTC  Name:
0001-apps-smtp-Fix-server-length-checking.patch  Size: 1kB   By: axellin

<http://savannah.nongnu.org/patch/download.php?file_id=40919>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9378>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]