You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "sjanc (via GitHub)" <gi...@apache.org> on 2026/05/04 10:57:48 UTC

[PR] nimble/host: Initialize att_len in ble_att_svr_service_uuid [mynewt-nimble]

sjanc opened a new pull request, #2221:
URL: https://github.com/apache/mynewt-nimble/pull/2221

   This is false positive as apparently some compilers doesn't handle rc and attr_len correlation correctly.
   
   In function 'ble_att_svr_service_uuid',
       inlined from 'ble_att_svr_build_read_group_type_rsp' at nimble/mynewt-nimble/nimble/host/src/ble_att_svr.c:1956:22,
       inlined from 'ble_att_svr_rx_read_group_type' at nimble/mynewt-nimble/nimble/host/src/ble_att_svr.c:2101:10:
   nimble/mynewt-nimble/nimble/host/src/ble_att_svr.c:1833:10: warning: 'attr_len' may be used uninitialized [-Wmaybe-uninitialized]
    1833 |     rc = ble_uuid_init_from_buf(uuid, val, attr_len);
         |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   nimble/mynewt-nimble/nimble/host/src/ble_att_svr.c: In function 'ble_att_svr_rx_read_group_type':
   nimble/mynewt-nimble/nimble/host/src/ble_att_svr.c:1824:14: note: 'attr_len' was declared here
    1824 |     uint16_t attr_len;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] nimble/host: Initialize att_len in ble_att_svr_service_uuid [mynewt-nimble]

Posted by "sjanc (via GitHub)" <gi...@apache.org>.
sjanc merged PR #2221:
URL: https://github.com/apache/mynewt-nimble/pull/2221


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org