buglwIP - A Lightweight TCP/IP stack - Bugs: bug #64045, [altcp_tls_mbedtls.c] Warnings...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64045: [altcp_tls_mbedtls.c] Warnings about not checked return values from mbedtls_ssl_flush_output()

Submitter:  Giuseppe Modugno <giusloq>
Submitted:  Fri 14 Apr 2023 08:18:58 AM UTC
   
 
Category:  apps Severity:  3 - Normal
Item Group:  Compiler Warning Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  2.2.1
lwIP version:  git head

Wed 11 Oct 2023 07:20:11 PM UTC, comment #2: 

Fixed, thanks for reporting.

BTW: please don't duplicate bugs as tasks!

Simon Goldschmidt <goldsimon>
Group administrator
Thu 04 May 2023 11:53:49 AM UTC, comment #1: 
Jonathan D <jona>
Fri 14 Apr 2023 08:18:58 AM UTC, original submission:  

In altcp_tls_mbedtls. there are some calls to mbedtls_ssl_flush_output(). This is a function that is defined as:


MBEDTLS_CHECK_RETURN_CRITICAL
int mbedtls_ssl_flush_output(mbedtls_ssl_context *ssl);


in ssl_internal.h.

In my build process, the compiler emits some warnings as the following:


lwip\src\apps\altcp_tls\altcp_tls_mbedtls.c|532|warning: ignoring return value of 'mbedtls_ssl_flush_output', declared with attribute warn_unused_result [-Wunused-result]|


It seems it is important to check the error code returned by this function, but lwip does not.

Giuseppe Modugno <giusloq>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by jona (Posted a comment)
  • -email is unavailable- added by giusloq (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-10-11 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.2.1

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code