Bug #748
Build issue with piboxd
Status: | Closed | Start date: | 10 Mar 2020 | |
---|---|---|---|---|
Priority: | Urgent | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | 00 - Basic Build Issues | |||
Target version: | PiBox - 1.1.0 - Upgrades | |||
Severity: | 03 - Medium |
Description
iot.c: In function 'registerDevice':
iot.c:126:22: warning: '%s' directive writing up to 36 bytes into a region of size 16 [-Wformat-overflow=]
sprintf(ipaddr, "%s", msg->tag);
^~
iot.c:126:5: note: 'sprintf' output between 1 and 37 bytes into a destination of size 16
sprintf(ipaddr, "%s", msg->tag);
Associated revisions
RM #748: Fixed size of ipaddr field to be large enough for a tag, which is being used for an ipaddr but could be as large as a uuid.