Project

General

Profile

Actions

Bug #3111

closed

ftp warnings during compile

Added by Peter Manev over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

I get this warning on Buster, regular compile from source.


g -O2 -fdebug-prefix-map=/Suricata/suricata-2019081101=. -fstack-protector-strong -Wformat -Werror=format-security -I./../rust/gen/c-headers -c -o output-json-flow.o output-json-flow.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/hs  -I/usr/lib/x86_64-linux-gnu/htp/include -I/usr/include/nspr -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss/ -I/usr/include/luajit-2.1 -fPIC  -Wextra -Werror-implicit-function-declaration  -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -std=gnu99 -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char  -g -O2 -fdebug-prefix-map=/Suricata/suricata-2019081101=. -fstack-protector-strong -Wformat -Werror=format-security -I./../rust/gen/c-headers -c -o output-json-ftp.o output-json-ftp.c
output-json-ftp.c: In function ‘JsonFTPLogger’:
output-json-ftp.c:155:9: warning: ‘js_respcode_list’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         json_object_set_new(cjs, "completion_code", js_respcode_list);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output-json-ftp.c:99:13: note: ‘js_respcode_list’ was declared here
     json_t *js_respcode_list;
             ^~~~~~~~~~~~~~~~
output-json-ftp.c:154:9: warning: ‘js_resplist’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         json_object_set_new(cjs, "reply", js_resplist);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output-json-ftp.c:98:13: note: ‘js_resplist’ was declared here
     json_t *js_resplist;
             ^~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/hs  -I/usr/lib/x86_64-linux-gnu/htp/include -I/usr/include/nspr -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss/ -I/usr/include/luajit-2.1 -fPIC  -Wextra -Werror-implicit-function-declaration  -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -std=gnu99 -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char  -g -O2 -fdebug-prefix-map=/Suricata/suricata-2019081101=. -fstack-protector-strong -Wformat -Werror=format-security -I./../rust/gen/c-headers -c -o output-json-netflow.o output-json-netflow.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/hs  

Actions #1

Updated by Andreas Herz over 5 years ago

  • Assignee set to OISF Dev
  • Target version set to 70
Actions #2

Updated by Victor Julien over 5 years ago

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Jeff Lucovsky
Actions #3

Updated by Victor Julien over 5 years ago

  • Status changed from Assigned to Closed
  • Assignee changed from Jeff Lucovsky to Jason Ish
  • Target version changed from 70 to 5.0rc1
Actions

Also available in: Atom PDF