[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
SMPlayer Support Forum • View topic - new GCC11 error:with mismatched bound

This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

new GCC11 error:with mismatched bound

Forum to talk about the development of SMPlayer (code, patches...).

new GCC11 error:with mismatched bound

Postby sergiomb » Sun Feb 18, 2018 5:38 am

Hi,
if you got any solution please tell me

/usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/smplayer-18.2.2-1.fc28.x86_64 'INSTALL=/usr/bin/install -p' PREFIX=/usr DOC_PATH=/usr/share/doc/smplayer
cd webserver && make
make[1]: Entering directory '/builddir/build/BUILD/smplayer-18.2.2/webserver'
cc main.c mongoose.c -o simple_web_server -O2 -W -Wall -Werror -Wno-unused-function -DMG_DISABLE_DAV_AUTH -DMG_ENABLE_HTTP_CGI=0 -DMG_ENABLE_THREADS=0 -pthread
mongoose.c: In function 'mg_send_ssi_file.part.42':
mongoose.c:8370:65: error: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 500 [-Werror=format-truncation=]
snprintf(path + strlen(path), sizeof(path) - strlen(path), "%s", file_name);
^~ ~~~~~~~~~
mongoose.c:8370:5: note: 'snprintf' output between 1 and 8192 bytes into a destination of size 500
snprintf(path + strlen(path), sizeof(path) - strlen(path), "%s", file_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mongoose.c:8362:35: error: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 500 [-Werror=format-truncation=]
snprintf(path, sizeof(path), "%s", file_name);
^~ ~~~~~~~~~
mongoose.c:8362:5: note: 'snprintf' output between 1 and 8192 bytes into a destination of size 500
snprintf(path, sizeof(path), "%s", file_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mongoose.c:8356:38: error: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 499 [-Werror=format-truncation=]
snprintf(path, sizeof(path), "%s/%s", opts->document_root, file_name);
^~ ~~~~~~~~~
mongoose.c:8356:5: note: 'snprintf' output 2 or more bytes (assuming 8193) into a destination of size 500
snprintf(path, sizeof(path), "%s/%s", opts->document_root, file_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mongoose.c: In function 'mg_resolve_async_opt':
mongoose.c:10791:3: error: 'strncpy' specified bound 1024 equals destination size [-Werror=stringop-truncation]
strncpy(req->name, name, sizeof(req->name));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: Leaving directory '/builddir/build/BUILD/smplayer-18.2.2/webserver'
make[1]: *** [Makefile:20: simple_web_server] Error 1


http://koji.rpmfusion.org/kojifiles/wor ... /build.log
http://koji.rpmfusion.org/koji/taskinfo?taskID=197998
Last edited by sergiomb on Fri Jan 15, 2021 12:41 pm, edited 2 times in total.
sergiomb
 
Posts: 22
Joined: Mon Nov 26, 2012 7:00 pm
Location: Portugal

Re: gcc 8 format-truncation warnings in webserver

Postby rvm » Sun Feb 18, 2018 11:00 am

I can't reproduce this problem but I guess you can try to update the mongoose files:
https://github.com/cesanta/mongoose
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: gcc 8 format-truncation warnings in webserver

Postby sergiomb » Mon Feb 19, 2018 6:38 am

the warning is only use building with GCC 8

Fedora have the mongoose package , in that case , may we use one external mongoose ? would be a nice feature ...

Thanks for the tip , I'm investigate now
sergiomb
 
Posts: 22
Joined: Mon Nov 26, 2012 7:00 pm
Location: Portugal

Re: gcc 8 format-truncation warnings in webserver

Postby sergiomb » Mon Jul 02, 2018 6:39 am

sergiomb
 
Posts: 22
Joined: Mon Nov 26, 2012 7:00 pm
Location: Portugal

Re: gcc 8 format-truncation warnings in webserver

Postby sergiomb » Fri Jan 15, 2021 11:36 am

sergiomb
 
Posts: 22
Joined: Mon Nov 26, 2012 7:00 pm
Location: Portugal

Re: new GCC11 error:with mismatched bound

Postby sergiomb » Fri Jan 15, 2021 12:50 pm

sergiomb
 
Posts: 22
Joined: Mon Nov 26, 2012 7:00 pm
Location: Portugal


Return to Development

Who is online

Users browsing this forum: No registered users and 13 guests