[riot-notifications] [RIOT-OS/RIOT] core/cib: fix documented maximum size restrictions (#14076)

Kaspar Schleiser notifications at github.com
Tue May 19 08:53:24 CEST 2020

@kaspar030 commented on this pull request.

> @@ -39,6 +39,9 @@ typedef struct {
  * @brief   Initialize cib_t to a given size.
+ *
+ * @param[in]  SIZE     Size of the buffer, must not exceed `UINT_MAX` + 1.

But the size needs to be limited so reads and writes do not reach  `-1` when casted to int. The restriction for CIB_INIT is the same as for cib_init().

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200518/0e8c02d5/attachment.htm>

More information about the notifications mailing list