Opened 2 months ago

Closed 5 days ago

#4862 closed task (invalid)

module-gbox.c

Reported by: samur Owned by:
Priority: minor Component: General
Severity: medium Keywords: module-gbox.c
Cc: Sensitive: yes

Description (last modified by samur)

Log:
i don't know what means but if i'm right, need to be fixed...!

....
..
/opt/arm/oscam-svn/module-gbox.c: In function 'gbox_reinit_proxy.isra':
/opt/arm/oscam-svn/module-gbox.c:47:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:47:17: note: 'snprintf' output 1 or more bytes (assuming 65) into a destination of size 64
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/arm/oscam-svn/module-gbox.c:42:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:42:17: note: 'snprintf' output 2 or more bytes (assuming 65) into a destination of size 64
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/arm/oscam-svn/module-gbox.c: In function 'remove_peer_crd_file':
/opt/arm/oscam-svn/module-gbox.c:47:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:47:17: note: 'snprintf' output 1 or more bytes (assuming 65) into a destination of size 64
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/arm/oscam-svn/module-gbox.c:42:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:42:17: note: 'snprintf' output 2 or more bytes (assuming 65) into a destination of size 64
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/arm/oscam-svn/module-gbox.c: In function 'gbox_send_hello':
/opt/arm/oscam-svn/module-gbox.c:47:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:47:17: note: 'snprintf' output 1 or more bytes (assuming 65) into a destination of size 64
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/arm/oscam-svn/module-gbox.c:42:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:42:17: note: 'snprintf' output 2 or more bytes (assuming 65) into a destination of size 64
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/arm/oscam-svn/module-gbox.c: In function 'gbox_reconnect_peer':
/opt/arm/oscam-svn/module-gbox.c:47:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:47:17: note: 'snprintf' output 1 or more bytes (assuming 65) into a destination of size 64
   47 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s", cfg.gbox_tmp_dir, slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/arm/oscam-svn/module-gbox.c:42:77: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                                                                             ^
/opt/arm/oscam-svn/module-gbox.c:42:17: note: 'snprintf' output 2 or more bytes (assuming 65) into a destination of size 64
   42 |                 snprintf(gbox_tmpfile_buf, sizeof(gbox_tmpfile_buf), "%s%s%s",get_tmp_dir(), slash, fext);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
..

Change History (7)

comment:1 by samur, 2 months ago

Description: modified (diff)
Summary: i don't know what means but if i'm right, need to be fixed...!module-gbox.c

comment:2 by nautilus7, 13 days ago

which gcc version?

comment:3 by samur, 13 days ago

gcc-11.2.0 !!!
;

comment:4 by nautilus7, 12 days ago

will add it to my do list for checking... thanks.

comment:5 by nautilus7, 6 days ago

@samur which architecture is this? For x86_64 and armv7 I don't get these warnings.

comment:6 by samur, 6 days ago

sorry, i lost the toolchain that producing the warning above ;

You can close the ticket ;

Thank you very much

comment:7 by nautilus7, 5 days ago

Resolution: invalid
Status: newclosed

ok, no problem.

Note: See TracTickets for help on using tickets.