[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
Page 1 of 1

new GCC11 error:with mismatched bound

PostPosted: Sun Feb 18, 2018 5:38 am
by sergiomb
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

Re: gcc 8 format-truncation warnings in webserver

PostPosted: Sun Feb 18, 2018 11:00 am
by rvm
I can't reproduce this problem but I guess you can try to update the mongoose files:
https://github.com/cesanta/mongoose

Re: gcc 8 format-truncation warnings in webserver

PostPosted: Mon Feb 19, 2018 6:38 am
by sergiomb
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

Re: gcc 8 format-truncation warnings in webserver

PostPosted: Mon Jul 02, 2018 6:39 am
by sergiomb

Re: gcc 8 format-truncation warnings in webserver

PostPosted: Fri Jan 15, 2021 11:36 am
by sergiomb

Re: new GCC11 error:with mismatched bound

PostPosted: Fri Jan 15, 2021 12:50 pm
by sergiomb