rest-0.9.1-10.fc41

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-main.c: scope_hint: In function ‘main’
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-main.c:89:3: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead
#   89 |   AdwApplication *app = adw_application_new ("org.gnome.RestDemo", G_APPLICATION_FLAGS_NONE);
#      |   ^~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-4.0/gtk/css/gtkcsssection.h:24: included_from: Included from here.
/usr/include/gtk-4.0/gtk/css/gtkcss.h:36: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:29: included_from: Included from here.
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-main.c:21: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:1545:3: note: declared here
# 1545 |   G_APPLICATION_FLAGS_NONE GIO_DEPRECATED_ENUMERATOR_IN_2_74_FOR(G_APPLICATION_DEFAULT_FLAGS),
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
#   87|     };
#   88|   
#   89|->   AdwApplication *app = adw_application_new ("org.gnome.RestDemo", G_APPLICATION_FLAGS_NONE);
#   90|     g_action_map_add_action_entries (G_ACTION_MAP (app),
#   91|                                      app_entries, G_N_ELEMENTS (app_entries),

Error: CPPCHECK_WARNING: [#def2]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def3]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c: scope_hint: In function ‘oauth2_dialog_response’
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c:215:9: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_content_area’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:43: included_from: Included from here.
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.h:23: included_from: Included from here.
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c:21: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:172:13: note: declared here
#  213|         {
#  214|           const gchar *code = NULL;
#  215|->         GtkWidget *content_area = gtk_dialog_get_content_area (dialog);
#  216|           GtkWidget *box = gtk_widget_get_first_child (content_area);
#  217|           GtkWidget *entry = gtk_widget_get_last_child (box);

Error: COMPILER_WARNING (CWE-477): [#def4]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c: scope_hint: In function ‘demo_rest_page_create_oauth2_dialog’
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c:243:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_new_with_buttons’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:133:12: note: declared here
#  241|     g_autofree char *token_str = NULL;
#  242|   
#  243|->   dialog = gtk_dialog_new_with_buttons ("Get Code...",
#  244|                                           GTK_WINDOW (gtk_widget_get_root (GTK_WIDGET (self))),
#  245|                                           GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_USE_HEADER_BAR,

Error: COMPILER_WARNING (CWE-477): [#def5]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c:252:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_content_area’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:172:13: note: declared here
#  250|                                           NULL);
#  251|   
#  252|->   content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
#  253|     gtk_widget_set_margin_top (content_area, 6);
#  254|     gtk_widget_set_margin_start (content_area, 6);

Error: COMPILER_WARNING (CWE-477): [#def6]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c: scope_hint: In function ‘on_oauth2_get_access_token_clicked’
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-rest-page.c:308:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead
/usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwidget.h:271:12: note: declared here
#  306|     dialog = demo_rest_page_create_oauth2_dialog (self, self->oauth2_proxy);
#  307|   
#  308|->   gtk_widget_show (dialog);
#  309|     set_oauth_btn_active (self, btn, self->oauth2_proxy, TRUE);
#  310|   }

Error: COMPILER_WARNING (CWE-477): [#def7]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-table.c: scope_hint: In function ‘create_dummy_row’
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-table.c:117:3: warning[-Wdeprecated-declarations]: ‘gtk_style_context_add_class’ is deprecated
/usr/include/gtk-4.0/gtk/gtk.h:267: included_from: Included from here.
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-table.h:23: included_from: Included from here.
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-table.c:21: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here
#  115|                           NULL);
#  116|     g_object_bind_property (self, "title", label, "label", G_BINDING_DEFAULT);
#  117|->   gtk_style_context_add_class (gtk_widget_get_style_context (label), "dim-label");
#  118|   
#  119|     row = g_object_new (GTK_TYPE_LIST_BOX_ROW,

Error: COMPILER_WARNING (CWE-477): [#def8]
rest-0.9.1-build/rest-0.9.1/examples/demo/demo-table.c:117:3: warning[-Wdeprecated-declarations]: ‘gtk_widget_get_style_context’ is deprecated
/usr/include/gtk-4.0/gtk/gtkapplication.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwindow.h:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkwidget.h:710:19: note: declared here
#  115|                           NULL);
#  116|     g_object_bind_property (self, "title", label, "label", G_BINDING_DEFAULT);
#  117|->   gtk_style_context_add_class (gtk_widget_get_style_context (label), "dim-label");
#  118|   
#  119|     row = g_object_new (GTK_TYPE_LIST_BOX_ROW,

Error: CPPCHECK_WARNING: [#def9]
rest-0.9.1-build/rest-0.9.1/examples/lastfm-shout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-252): [#def10]
rest-0.9.1-build/rest-0.9.1/examples/test-raw.c: scope_hint: In function ‘proxy_call_async_cb’
rest-0.9.1-build/rest-0.9.1/examples/test-raw.c:37:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   37 |   write (1, payload, len);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~
#   35|     payload = rest_proxy_call_get_payload (call);
#   36|     len = rest_proxy_call_get_payload_length (call);
#   37|->   write (1, payload, len);
#   38|     g_main_loop_quit ((GMainLoop *)user_data);
#   39|   }

Error: COMPILER_WARNING (CWE-252): [#def11]
rest-0.9.1-build/rest-0.9.1/examples/test-raw.c: scope_hint: In function ‘main’
rest-0.9.1-build/rest-0.9.1/examples/test-raw.c:70:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   70 |   write (1, payload, len);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~
#   68|     payload = rest_proxy_call_get_payload (call);
#   69|     len = rest_proxy_call_get_payload_length (call);
#   70|->   write (1, payload, len);
#   71|   
#   72|     g_object_unref (call);

Error: COMPILER_WARNING (CWE-252): [#def12]
rest-0.9.1-build/rest-0.9.1/examples/test-xml.c: scope_hint: In function ‘proxy_call_raw_async_cb’
rest-0.9.1-build/rest-0.9.1/examples/test-xml.c:100:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  100 |   write (1, payload, len);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~
#   98|     payload = rest_proxy_call_get_payload (call);
#   99|     len = rest_proxy_call_get_payload_length (call);
#  100|->   write (1, payload, len);
#  101|     node = rest_xml_parser_parse_from_data (parser, payload, len);
#  102|   

Error: CPPCHECK_WARNING: [#def13]
rest-0.9.1-build/rest-0.9.1/redhat-linux-build/tmp-introspectefhobs_x/Rest-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def14]
rest-0.9.1-build/rest-0.9.1/redhat-linux-build/tmp-introspectefhobs_x/Rest-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def15]
rest-0.9.1-build/rest-0.9.1/redhat-linux-build/tmp-introspecton91jcn6/RestExtras-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def16]
rest-0.9.1-build/rest-0.9.1/redhat-linux-build/tmp-introspecton91jcn6/RestExtras-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def17]
rest-0.9.1-build/rest-0.9.1/rest/rest-oauth2-proxy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
rest-0.9.1-build/rest-0.9.1/rest/rest-param.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
rest-0.9.1-build/rest-0.9.1/rest/rest-xml-node.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
rest-0.9.1-build/rest-0.9.1/tests/flickr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
rest-0.9.1-build/rest-0.9.1/tests/lastfm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def22]
rest-0.9.1-build/rest-0.9.1/tests/params.c:39:7: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#   37|     while (rest_params_iter_next (&iter, &name, &param))
#   38|       {
#   39|->       g_assert_cmpstr (data[pos].name, ==, name);
#   40|         g_assert_cmpstr (data[pos].value, ==, rest_param_get_content (param));
#   41|         pos++;

Error: CLANG_WARNING: [#def23]
rest-0.9.1-build/rest-0.9.1/tests/params.c:49:7: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#   47|     while (rest_params_iter_next (&iter, &name, &param))
#   48|       {
#   49|->       g_assert_cmpstr (data[pos].name, ==, name);
#   50|         g_assert_cmpstr (data[pos].value, ==, rest_param_get_content (param));
#   51|         pos++;

Error: CPPCHECK_WARNING: [#def24]
rest-0.9.1-build/rest-0.9.1/tests/proxy-continuous.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def25]
rest-0.9.1-build/rest-0.9.1/tests/proxy-continuous.c: scope_hint: In function ‘send_chunks’
rest-0.9.1-build/rest-0.9.1/tests/proxy-continuous.c:59:3: warning[-Wdeprecated-declarations]: ‘soup_server_unpause_message’ is deprecated: Use 'soup_server_message_unpause' instead
#   59 |   soup_server_unpause_message (server, msg);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libsoup-3.0/libsoup/soup.h:36: included_from: Included from here.
rest-0.9.1-build/rest-0.9.1/tests/proxy-continuous.c:28: included_from: Included from here.
/usr/include/libsoup-3.0/libsoup/soup-server.h:157:17: note: declared here
#  157 | void            soup_server_unpause_message (SoupServer        *server,
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#   57|   
#   58|     soup_message_body_append (response_body, SOUP_MEMORY_COPY, data, SIZE_CHUNK);
#   59|->   soup_server_unpause_message (server, msg);
#   60|   
#   61|     if (server_count == NUM_CHUNKS * SIZE_CHUNK)

Error: COMPILER_WARNING (CWE-477): [#def26]
rest-0.9.1-build/rest-0.9.1/tests/proxy-continuous.c: scope_hint: In function ‘server_callback’
rest-0.9.1-build/rest-0.9.1/tests/proxy-continuous.c:94:3: warning[-Wdeprecated-declarations]: ‘soup_server_pause_message’ is deprecated: Use 'soup_server_message_pause' instead
#   94 |   soup_server_pause_message (server, msg);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libsoup-3.0/libsoup/soup-server.h:154:17: note: declared here
#  154 | void            soup_server_pause_message   (SoupServer        *server,
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
#   92|     soup_message_headers_set_encoding (response_headers,
#   93|                                        SOUP_ENCODING_CHUNKED);
#   94|->   soup_server_pause_message (server, msg);
#   95|   
#   96|     g_idle_add (send_chunks, msg);

Error: CLANG_WARNING: [#def27]
rest-0.9.1-build/rest-0.9.1/tests/proxy-continuous.c:117:5: warning[core.NullDereference]: Array access (from variable 'buf') results in a null pointer dereference
#  115|     for (i = 0; i < len; i++)
#  116|     {
#  117|->     g_assert_cmpint (buf[i], ==, client_count);
#  118|       client_count++;
#  119|     }

Error: CPPCHECK_WARNING: [#def28]
rest-0.9.1-build/rest-0.9.1/tests/proxy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def29]
rest-0.9.1-build/rest-0.9.1/tests/proxy.c: scope_hint: In function ‘server_callback’
rest-0.9.1-build/rest-0.9.1/tests/proxy.c:137:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
rest-0.9.1-build/rest-0.9.1/tests/proxy.c:131:12: note: in expansion of macro ‘g_str_equal’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
rest-0.9.1-build/rest-0.9.1/tests/proxy.c:134:13: note: in expansion of macro ‘g_strdup’
rest-0.9.1-build/rest-0.9.1/tests/proxy.c: scope_hint: In function ‘server_callback’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  135|       g_strreverse (value);
#  136|   
#  137|->     soup_server_message_set_response (msg, "text/plain", SOUP_MEMORY_TAKE,
#  138|                                          value, strlen (value));
#  139|       soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-241.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namerest-0.9.1-10.fc41
store-results-to/tmp/tmpf9c9jh8a/rest-0.9.1-10.fc41.tar.xz
time-created2024-07-03 17:54:16
time-finished2024-07-03 17:55:56
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpf9c9jh8a/rest-0.9.1-10.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpf9c9jh8a/rest-0.9.1-10.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9