mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-03 13:19:03 +00:00
nxplayer.c: In function 'nxplayer_playinternal':
Error: nxplayer.c:209:36: error: '%s' directive output may be truncated writing up to 99 bytes into a region of size 59 [-Werror=format-truncation=]
209 | snprintf(buf, sizeof(buf), "GET /%s HTTP/1.0\r\n\r\n", relurl);
| ^~ ~~~~~~
nxplayer.c:209:3: note: 'snprintf' output between 19 and 118 bytes into a destination of size 64
209 | snprintf(buf, sizeof(buf), "GET /%s HTTP/1.0\r\n\r\n", relurl);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: nxplayer.c:1809:42: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
1809 | snprintf(path, sizeof(path), "%s/%s", pplayer->mediadir, pfilename);
| ^
nxplayer.c:1809:7: note: 'snprintf' output 2 or more bytes (assuming 129) into a destination of size 128
1809 | snprintf(path, sizeof(path), "%s/%s", pplayer->mediadir, pfilename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: nxplayer.c:359:53: error: '%s' directive output may be truncated writing up to 128 bytes into a region of size 53 [-Werror=format-truncation=]
359 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~
nxplayer.c:359:11: note: 'snprintf' output between 12 and 140 bytes into a destination of size 64
359 | snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| adb | ||
| argtable3 | ||
| cdcacm | ||
| cfgdata | ||
| cle | ||
| composite | ||
| critmon | ||
| cu | ||
| dhcpc | ||
| dumpstack | ||
| embedlog | ||
| flash_eraseall | ||
| hex2bin | ||
| hexed | ||
| hostname | ||
| i2c | ||
| input | ||
| libuv | ||
| lm75 | ||
| lzf | ||
| mdio | ||
| netdb | ||
| nsh | ||
| ntpc | ||
| nxlooper | ||
| nxplayer | ||
| nxrecorder | ||
| ping | ||
| ping6 | ||
| popen | ||
| psmq | ||
| ramtest | ||
| readline | ||
| sched_note | ||
| setlogmask | ||
| spi | ||
| stackmonitor | ||
| system | ||
| taskset | ||
| tee | ||
| telnet | ||
| termcurses | ||
| trace | ||
| ubloxmodem | ||
| uniqueid | ||
| usbmsc | ||
| vi | ||
| zmodem | ||
| .gitignore | ||
| Make.defs | ||
| Makefile | ||