idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
34,300
static void clear_warnings(void) { /* erase all warnings */ if (!g_warning_issued) return; gtk_widget_hide(g_widget_warnings_area); gtk_container_foreach(GTK_CONTAINER(g_box_warning_labels), &remove_child_widget, NULL); g_warning_issued = false; }
+Info
0
static void clear_warnings(void) { /* erase all warnings */ if (!g_warning_issued) return; gtk_widget_hide(g_widget_warnings_area); gtk_container_foreach(GTK_CONTAINER(g_box_warning_labels), &remove_child_widget, NULL); g_warning_issued = false; }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,301
static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, gpointer data) { struct analyze_event_data *evd = data; struct run_event_state *run_state = evd->run_state; bool stop_requested = false; int retval = consume_event_command_output(run_state, g_dump_dir_name); if (retval ...
+Info
0
static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, gpointer data) { struct analyze_event_data *evd = data; struct run_event_state *run_state = evd->run_state; bool stop_requested = false; int retval = consume_event_command_output(run_state, g_dump_dir_name); if (retval ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,302
static void correct_bz_private_goup_name(const char *event_name) { if (strcmp("report_Bugzilla", event_name) == 0 && gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(g_builder, PRIVATE_TICKET_CB)))) { event_config_t *cfg = get_event_config(event_name); if (NULL != cf...
+Info
0
static void correct_bz_private_goup_name(const char *event_name) { if (strcmp("report_Bugzilla", event_name) == 0 && gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(g_builder, PRIVATE_TICKET_CB)))) { event_config_t *cfg = get_event_config(event_name); if (NULL != cf...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,303
void create_assistant(GtkApplication *app, bool expert_mode) { g_loaded_texts = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); g_expert_mode = expert_mode; g_monospace_font = pango_font_description_from_string("monospace"); g_assistant = GTK_NOTEBOOK(gtk_notebook_new()); /* Show t...
+Info
0
void create_assistant(GtkApplication *app, bool expert_mode) { g_loaded_texts = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); g_expert_mode = expert_mode; g_monospace_font = pango_font_description_from_string("monospace"); g_assistant = GTK_NOTEBOOK(gtk_notebook_new()); /* Show t...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,304
static void create_details_treeview(void) { GtkCellRenderer *renderer; GtkTreeViewColumn *column; renderer = gtk_cell_renderer_toggle_new(); column = gtk_tree_view_column_new_with_attributes( _("Include"), renderer, /* which "attr" of renderer to set from which COLUMN? (...
+Info
0
static void create_details_treeview(void) { GtkCellRenderer *renderer; GtkTreeViewColumn *column; renderer = gtk_cell_renderer_toggle_new(); column = gtk_tree_view_column_new_with_attributes( _("Include"), renderer, /* which "attr" of renderer to set from which COLUMN? (...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,305
static gboolean event_after(GtkWidget *text_view, GdkEvent *ev) { GtkTextIter start, end, iter; GtkTextBuffer *buffer; GdkEventButton *event; gint x, y; if (ev->type != GDK_BUTTON_RELEASE) return FALSE; event = (GdkEventButton *)ev; if (event->button != GDK_BUTTON_PRIMARY) ...
+Info
0
static gboolean event_after(GtkWidget *text_view, GdkEvent *ev) { GtkTextIter start, end, iter; GtkTextBuffer *buffer; GdkEventButton *event; gint x, y; if (ev->type != GDK_BUTTON_RELEASE) return FALSE; event = (GdkEventButton *)ev; if (event->button != GDK_BUTTON_PRIMARY) ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,306
static bool event_need_review(const char *event_name) { event_config_t *event_cfg = get_event_config(event_name); return !event_cfg || !event_cfg->ec_skip_review; }
+Info
0
static bool event_need_review(const char *event_name) { event_config_t *event_cfg = get_event_config(event_name); return !event_cfg || !event_cfg->ec_skip_review; }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,307
static void event_rb_was_toggled(GtkButton *button, gpointer user_data) { /* Note: called both when item is selected and _unselected_, * use gtk_toggle_button_get_active() to determine state. */ GList *found = g_list_find_custom(g_list_events, button, find_by_button); if (found) { even...
+Info
0
static void event_rb_was_toggled(GtkButton *button, gpointer user_data) { /* Note: called both when item is selected and _unselected_, * use gtk_toggle_button_get_active() to determine state. */ GList *found = g_list_find_custom(g_list_events, button, find_by_button); if (found) { even...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,308
static gint find_by_button(gconstpointer a, gconstpointer button) { const event_gui_data_t *evdata = a; return (evdata->toggle_button != button); }
+Info
0
static gint find_by_button(gconstpointer a, gconstpointer button) { const event_gui_data_t *evdata = a; return (evdata->toggle_button != button); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,309
static GList *find_words_in_text_buffer(int page, GtkTextView *tev, GList *words, GList *ignore_sitem_list, GtkTextIter start_find, ...
+Info
0
static GList *find_words_in_text_buffer(int page, GtkTextView *tev, GList *words, GList *ignore_sitem_list, GtkTextIter start_find, ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,310
static void fix_all_wrapped_labels(GtkWidget *widget) { wrap_fixer(widget, NULL); }
+Info
0
static void fix_all_wrapped_labels(GtkWidget *widget) { wrap_fixer(widget, NULL); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,311
static void free_event_gui_data_t(event_gui_data_t *evdata, void *unused) { if (evdata) { free(evdata->event_name); free(evdata); } }
+Info
0
static void free_event_gui_data_t(event_gui_data_t *evdata, void *unused) { if (evdata) { free(evdata->event_name); free(evdata); } }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,312
static void g_tv_details_checkbox_toggled( GtkCellRendererToggle *cell_renderer_UNUSED, gchar *tree_path, gpointer user_data_UNUSED) { GtkTreeIter iter; if (!gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(g_ls_details), &iter, tree_...
+Info
0
static void g_tv_details_checkbox_toggled( GtkCellRendererToggle *cell_renderer_UNUSED, gchar *tree_path, gpointer user_data_UNUSED) { GtkTreeIter iter; if (!gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(g_ls_details), &iter, tree_...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,313
static gchar *get_malloced_string_from_text_view(GtkTextView *tv) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(tv); GtkTextIter start; GtkTextIter end; gtk_text_buffer_get_start_iter(buffer, &start); gtk_text_buffer_get_end_iter(buffer, &end); return gtk_text_buffer_get_text(buffer, &start...
+Info
0
static gchar *get_malloced_string_from_text_view(GtkTextView *tv) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(tv); GtkTextIter start; GtkTextIter end; gtk_text_buffer_get_start_iter(buffer, &start); gtk_text_buffer_get_end_iter(buffer, &end); return gtk_text_buffer_get_text(buffer, &start...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,314
static bool get_sensitive_data_permission(const char *event_name) { event_config_t *event_cfg = get_event_config(event_name); if (!event_cfg || !event_cfg->ec_sending_sensitive_data) return true; char *msg = xasprintf(_("Event '%s' requires permission to send possibly sensitive data." ...
+Info
0
static bool get_sensitive_data_permission(const char *event_name) { event_config_t *event_cfg = get_event_config(event_name); if (!event_cfg || !event_cfg->ec_sending_sensitive_data) return true; char *msg = xasprintf(_("Event '%s' requires permission to send possibly sensitive data." ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,315
static void hide_next_step_button() { /* replace 'Forward' with 'Close' button */ /* 1. hide next button */ gtk_widget_hide(g_btn_next); /* 2. move close button to the last position */ gtk_box_set_child_packing(g_box_buttons, g_btn_close, false, false, 5, GTK_PACK_END); }
+Info
0
static void hide_next_step_button() { /* replace 'Forward' with 'Close' button */ /* 1. hide next button */ gtk_widget_hide(g_btn_next); /* 2. move close button to the last position */ gtk_box_set_child_packing(g_box_buttons, g_btn_close, false, false, 5, GTK_PACK_END); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,316
static void highlight_search(GtkEntry *entry) { g_search_text = gtk_entry_get_text(entry); log_notice("searching: '%s'", g_search_text); GList *words = g_list_append(NULL, (gpointer)g_search_text); highligh_words_in_tabs(words, NULL, /*case insensitive*/true); g_list_free(words); }
+Info
0
static void highlight_search(GtkEntry *entry) { g_search_text = gtk_entry_get_text(entry); log_notice("searching: '%s'", g_search_text); GList *words = g_list_append(NULL, (gpointer)g_search_text); highligh_words_in_tabs(words, NULL, /*case insensitive*/true); g_list_free(words); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,317
static gboolean highlight_search_on_timeout(gpointer user_data) { g_timeout = 0; highlight_search(GTK_ENTRY(user_data)); /* returning false will make glib to remove this event */ return false; }
+Info
0
static gboolean highlight_search_on_timeout(gpointer user_data) { g_timeout = 0; highlight_search(GTK_ENTRY(user_data)); /* returning false will make glib to remove this event */ return false; }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,318
static void init_page(page_obj_t *page, const char *name, const char *title) { page->name = name; page->title = title; }
+Info
0
static void init_page(page_obj_t *page, const char *name, const char *title) { page->name = name; page->title = title; }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,319
static void init_pages(void) { init_page(&pages[0], PAGE_SUMMARY , _("Problem description") ); init_page(&pages[1], PAGE_EVENT_SELECTOR , _("Select how to report this problem")); init_page(&pages[2], PAGE_EDIT_COMMENT,_("Provide additional information")); init_page(&pages[3], PAGE_EDIT_...
+Info
0
static void init_pages(void) { init_page(&pages[0], PAGE_SUMMARY , _("Problem description") ); init_page(&pages[1], PAGE_EVENT_SELECTOR , _("Select how to report this problem")); init_page(&pages[2], PAGE_EDIT_COMMENT,_("Provide additional information")); init_page(&pages[3], PAGE_EDIT_...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,320
static bool is_processing_finished() { return !g_expert_mode && !g_auto_event_list; }
+Info
0
static bool is_processing_finished() { return !g_expert_mode && !g_auto_event_list; }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,321
static gboolean key_press_event(GtkWidget *text_view, GdkEventKey *event) { GtkTextIter iter; GtkTextBuffer *buffer; switch (event->keyval) { case GDK_KEY_Return: case GDK_KEY_KP_Enter: buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (text_view)); gtk_text_buffer...
+Info
0
static gboolean key_press_event(GtkWidget *text_view, GdkEventKey *event) { GtkTextIter iter; GtkTextBuffer *buffer; switch (event->keyval) { case GDK_KEY_Return: case GDK_KEY_KP_Enter: buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (text_view)); gtk_text_buffer...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,322
static void label_wrapper(GtkWidget *widget, gpointer data_unused) { if (GTK_IS_CONTAINER(widget)) { gtk_container_foreach((GtkContainer*)widget, label_wrapper, NULL); return; } if (GTK_IS_LABEL(widget)) { GtkLabel *label = (GtkLabel*)widget; gtk_label_set_line_wrap(l...
+Info
0
static void label_wrapper(GtkWidget *widget, gpointer data_unused) { if (GTK_IS_CONTAINER(widget)) { gtk_container_foreach((GtkContainer*)widget, label_wrapper, NULL); return; } if (GTK_IS_LABEL(widget)) { GtkLabel *label = (GtkLabel*)widget; gtk_label_set_line_wrap(l...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,323
static void load_text_to_text_view(GtkTextView *tv, const char *name) { /* Add to set of loaded files */ /* a key_destroy_func() is provided therefore if the key for name already exists */ /* a result of xstrdup() is freed */ g_hash_table_insert(g_loaded_texts, (gpointer)xstrdup(name), (gpointer)1); ...
+Info
0
static void load_text_to_text_view(GtkTextView *tv, const char *name) { /* Add to set of loaded files */ /* a key_destroy_func() is provided therefore if the key for name already exists */ /* a result of xstrdup() is freed */ g_hash_table_insert(g_loaded_texts, (gpointer)xstrdup(name), (gpointer)1); ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,324
static void log_request_response_communication(const char *request, const char *response, struct analyze_event_data *evd) { char *message = xasprintf(response ? "%s '%s'" : "%s", request, response); update_command_run_log(message, evd); free(message); }
+Info
0
static void log_request_response_communication(const char *request, const char *response, struct analyze_event_data *evd) { char *message = xasprintf(response ? "%s '%s'" : "%s", request, response); update_command_run_log(message, evd); free(message); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,325
static GtkBuilder *make_builder() { GError *error = NULL; GtkBuilder *builder = gtk_builder_new(); if (!g_glade_file) { /* load additional widgets from glade */ gtk_builder_add_objects_from_string(builder, WIZARD_GLADE_CONTENTS, sizeof(WIZARD_GLADE_CONTENTS) - 1, ...
+Info
0
static GtkBuilder *make_builder() { GError *error = NULL; GtkBuilder *builder = gtk_builder_new(); if (!g_glade_file) { /* load additional widgets from glade */ gtk_builder_add_objects_from_string(builder, WIZARD_GLADE_CONTENTS, sizeof(WIZARD_GLADE_CONTENTS) - 1, ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,326
static char *missing_items_in_comma_list(const char *input_item_list) { if (!input_item_list) return NULL; char *item_list = xstrdup(input_item_list); char *result = item_list; char *dst = item_list; while (item_list[0]) { char *end = strchr(item_list, ','); if (end) *e...
+Info
0
static char *missing_items_in_comma_list(const char *input_item_list) { if (!input_item_list) return NULL; char *item_list = xstrdup(input_item_list); char *result = item_list; char *dst = item_list; while (item_list[0]) { char *end = strchr(item_list, ','); if (end) *e...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,327
static gboolean motion_notify_event(GtkWidget *text_view, GdkEventMotion *event) { gint x, y; gtk_text_view_window_to_buffer_coords(GTK_TEXT_VIEW(text_view), GTK_TEXT_WINDOW_WIDGET, event->x, event->y, &x, &y); set_cursor_...
+Info
0
static gboolean motion_notify_event(GtkWidget *text_view, GdkEventMotion *event) { gint x, y; gtk_text_view_window_to_buffer_coords(GTK_TEXT_VIEW(text_view), GTK_TEXT_WINDOW_WIDGET, event->x, event->y, &x, &y); set_cursor_...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,328
static event_gui_data_t *new_event_gui_data_t(void) { return xzalloc(sizeof(event_gui_data_t)); }
+Info
0
static event_gui_data_t *new_event_gui_data_t(void) { return xzalloc(sizeof(event_gui_data_t)); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,329
static void on_btn_add_file(GtkButton *button) { GtkWidget *dialog = gtk_file_chooser_dialog_new( "Attach File", GTK_WINDOW(g_wnd_assistant), GTK_FILE_CHOOSER_ACTION_OPEN, _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Open"), GTK_RESPONSE_ACCEPT, NULL...
+Info
0
static void on_btn_add_file(GtkButton *button) { GtkWidget *dialog = gtk_file_chooser_dialog_new( "Attach File", GTK_WINDOW(g_wnd_assistant), GTK_FILE_CHOOSER_ACTION_OPEN, _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Open"), GTK_RESPONSE_ACCEPT, NULL...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,330
static void on_btn_cancel_event(GtkButton *button) { cancel_event_run(); }
+Info
0
static void on_btn_cancel_event(GtkButton *button) { cancel_event_run(); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,331
static void on_btn_detail(GtkButton *button) { GtkWidget *pdd = problem_details_dialog_new(g_cd, g_wnd_assistant); gtk_dialog_run(GTK_DIALOG(pdd)); }
+Info
0
static void on_btn_detail(GtkButton *button) { GtkWidget *pdd = problem_details_dialog_new(g_cd, g_wnd_assistant); gtk_dialog_run(GTK_DIALOG(pdd)); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,332
static void on_btn_failed_cb(GtkButton *button) { /* Since the Repeat button has been introduced, the event chain isn't * terminated upon a failure in order to be able to continue in processing * in the retry action. * * Now, user decided to run the emergency analysis instead of trying to *...
+Info
0
static void on_btn_failed_cb(GtkButton *button) { /* Since the Repeat button has been introduced, the event chain isn't * terminated upon a failure in order to be able to continue in processing * in the retry action. * * Now, user decided to run the emergency analysis instead of trying to *...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,333
static void on_btn_repeat_cb(GtkButton *button) { g_auto_event_list = g_list_prepend(g_auto_event_list, g_event_selected); g_event_selected = NULL; show_next_step_button(); clear_warnings(); const gint current_page_no = gtk_notebook_get_current_page(g_assistant); const int next_page_no = selec...
+Info
0
static void on_btn_repeat_cb(GtkButton *button) { g_auto_event_list = g_list_prepend(g_auto_event_list, g_event_selected); g_event_selected = NULL; show_next_step_button(); clear_warnings(); const gint current_page_no = gtk_notebook_get_current_page(g_assistant); const int next_page_no = selec...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,334
static void on_comment_changed(GtkTextBuffer *buffer, gpointer user_data) { toggle_eb_comment(); }
+Info
0
static void on_comment_changed(GtkTextBuffer *buffer, gpointer user_data) { toggle_eb_comment(); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,335
static void on_custom_search_toggled(GtkToggleButton *btn, gpointer user_data) { const gboolean custom_search = gtk_toggle_button_get_active(btn); gtk_widget_set_sensitive(GTK_WIDGET(g_search_entry_bt), custom_search); if (custom_search) highlight_search(g_search_entry_bt); }
+Info
0
static void on_custom_search_toggled(GtkToggleButton *btn, gpointer user_data) { const gboolean custom_search = gtk_toggle_button_get_active(btn); gtk_widget_set_sensitive(GTK_WIDGET(g_search_entry_bt), custom_search); if (custom_search) highlight_search(g_search_entry_bt); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,336
static void on_failed_event(const char *event_name) { /* Don't show the 'on failure' button if the processed event * was started by that button. (avoid infinite loop) */ if (strcmp(event_name, EMERGENCY_ANALYSIS_EVENT_NAME) == 0) return; add_warning( _("Processing of the problem failed. Th...
+Info
0
static void on_failed_event(const char *event_name) { /* Don't show the 'on failure' button if the processed event * was started by that button. (avoid infinite loop) */ if (strcmp(event_name, EMERGENCY_ANALYSIS_EVENT_NAME) == 0) return; add_warning( _("Processing of the problem failed. Th...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,337
static void on_forbidden_words_toggled(GtkToggleButton *btn, gpointer user_data) { g_search_text = NULL; log_notice("nothing to search for, highlighting forbidden words instead"); highlight_forbidden(); }
+Info
0
static void on_forbidden_words_toggled(GtkToggleButton *btn, gpointer user_data) { g_search_text = NULL; log_notice("nothing to search for, highlighting forbidden words instead"); highlight_forbidden(); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,338
static void on_log_changed(GtkTextBuffer *buffer, gpointer user_data) { gtk_widget_show(GTK_WIDGET(g_exp_report_log)); }
+Info
0
static void on_log_changed(GtkTextBuffer *buffer, gpointer user_data) { gtk_widget_show(GTK_WIDGET(g_exp_report_log)); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,339
static void on_next_btn_cb(GtkWidget *btn, gpointer user_data) { gint current_page_no = gtk_notebook_get_current_page(g_assistant); gint next_page_no = select_next_page_no(current_page_no, NULL); /* if pageno is not change 'switch-page' signal is not emitted */ if (current_page_no == next_page_no) ...
+Info
0
static void on_next_btn_cb(GtkWidget *btn, gpointer user_data) { gint current_page_no = gtk_notebook_get_current_page(g_assistant); gint next_page_no = select_next_page_no(current_page_no, NULL); /* if pageno is not change 'switch-page' signal is not emitted */ if (current_page_no == next_page_no) ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,340
static void on_no_comment_toggled(GtkToggleButton *togglebutton, gpointer user_data) { toggle_eb_comment(); }
+Info
0
static void on_no_comment_toggled(GtkToggleButton *togglebutton, gpointer user_data) { toggle_eb_comment(); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,341
static void on_sensitive_ticket_clicked_cb(GtkWidget *button, gpointer user_data) { if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) { xsetenv(CREATE_PRIVATE_TICKET, "1"); } else { safe_unsetenv(CREATE_PRIVATE_TICKET); } }
+Info
0
static void on_sensitive_ticket_clicked_cb(GtkWidget *button, gpointer user_data) { if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) { xsetenv(CREATE_PRIVATE_TICKET, "1"); } else { safe_unsetenv(CREATE_PRIVATE_TICKET); } }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,342
static void on_sensitive_word_selection_changed(GtkTreeSelection *sel, gpointer user_data) { search_item_t *old_word = g_current_highlighted_word; g_current_highlighted_word = NULL; if (old_word && FALSE == gtk_text_buffer_get_modified(old_word->buffer)) gtk_text_buffer_remove_tag_by_name(old_word-...
+Info
0
static void on_sensitive_word_selection_changed(GtkTreeSelection *sel, gpointer user_data) { search_item_t *old_word = g_current_highlighted_word; g_current_highlighted_word = NULL; if (old_word && FALSE == gtk_text_buffer_get_modified(old_word->buffer)) gtk_text_buffer_remove_tag_by_name(old_word-...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,343
static void open_browse_if_link(GtkWidget *text_view, GtkTextIter *iter) { GSList *tags = NULL, *tagp = NULL; tags = gtk_text_iter_get_tags (iter); for (tagp = tags; tagp != NULL; tagp = tagp->next) { GtkTextTag *tag = tagp->data; const char *url = g_object_get_data (G_OBJECT (tag), "...
+Info
0
static void open_browse_if_link(GtkWidget *text_view, GtkTextIter *iter) { GSList *tags = NULL, *tagp = NULL; tags = gtk_text_iter_get_tags (iter); for (tagp = tags; tagp != NULL; tagp = tagp->next) { GtkTextTag *tag = tagp->data; const char *url = g_object_get_data (G_OBJECT (tag), "...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,344
static void rehighlight_forbidden_words(int page, GtkTextView *tev) { GList *forbidden_words = load_words_from_file(FORBIDDEN_WORDS_BLACKLLIST); GList *allowed_words = load_words_from_file(FORBIDDEN_WORDS_WHITELIST); highligh_words_in_textview(page, tev, forbidden_words, allowed_words, /*case sensitive*/fal...
+Info
0
static void rehighlight_forbidden_words(int page, GtkTextView *tev) { GList *forbidden_words = load_words_from_file(FORBIDDEN_WORDS_BLACKLLIST); GList *allowed_words = load_words_from_file(FORBIDDEN_WORDS_WHITELIST); highligh_words_in_textview(page, tev, forbidden_words, allowed_words, /*case sensitive*/fal...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,345
static void remove_child_widget(GtkWidget *widget, gpointer unused) { /* Destroy will safely remove it and free the memory * if there are no refs left */ gtk_widget_destroy(widget); }
+Info
0
static void remove_child_widget(GtkWidget *widget, gpointer unused) { /* Destroy will safely remove it and free the memory * if there are no refs left */ gtk_widget_destroy(widget); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,346
static void run_event_gtk_alert(const char *msg, void *args) { GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(g_wnd_assistant), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, "%s", msg); char *tagged_msg = tag_url...
+Info
0
static void run_event_gtk_alert(const char *msg, void *args) { GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(g_wnd_assistant), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, "%s", msg); char *tagged_msg = tag_url...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,347
static char *run_event_gtk_ask(const char *msg, void *args) { return ask_helper(msg, args, false); }
+Info
0
static char *run_event_gtk_ask(const char *msg, void *args) { return ask_helper(msg, args, false); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,348
static int run_event_gtk_ask_yes_no(const char *msg, void *args) { GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(g_wnd_assistant), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", msg); char *tagged_msg = t...
+Info
0
static int run_event_gtk_ask_yes_no(const char *msg, void *args) { GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(g_wnd_assistant), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", msg); char *tagged_msg = t...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,349
static int run_event_gtk_ask_yes_no_save_result(const char *key, const char *msg, void *args) { const int ret = run_ask_yes_no_save_result_dialog(key, msg, GTK_WINDOW(g_wnd_assistant)); log_request_response_communication(msg, ret ? "YES" : "NO", (struct analyze_event_data *)args); return ret; }
+Info
0
static int run_event_gtk_ask_yes_no_save_result(const char *key, const char *msg, void *args) { const int ret = run_ask_yes_no_save_result_dialog(key, msg, GTK_WINDOW(g_wnd_assistant)); log_request_response_communication(msg, ret ? "YES" : "NO", (struct analyze_event_data *)args); return ret; }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,350
static int run_event_gtk_ask_yes_no_yesforever(const char *key, const char *msg, void *args) { const int ret = run_ask_yes_no_yesforever_dialog(key, msg, GTK_WINDOW(g_wnd_assistant)); log_request_response_communication(msg, ret ? "YES" : "NO", (struct analyze_event_data *)args); return ret; }
+Info
0
static int run_event_gtk_ask_yes_no_yesforever(const char *key, const char *msg, void *args) { const int ret = run_ask_yes_no_yesforever_dialog(key, msg, GTK_WINDOW(g_wnd_assistant)); log_request_response_communication(msg, ret ? "YES" : "NO", (struct analyze_event_data *)args); return ret; }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,351
static void run_event_gtk_error(const char *error_line, void *param) { update_command_run_log(error_line, (struct analyze_event_data *)param); }
+Info
0
static void run_event_gtk_error(const char *error_line, void *param) { update_command_run_log(error_line, (struct analyze_event_data *)param); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,352
static void save_text_from_text_view(GtkTextView *tv, const char *name) { gchar *new_str = get_malloced_string_from_text_view(tv); save_text_if_changed(name, new_str); free(new_str); }
+Info
0
static void save_text_from_text_view(GtkTextView *tv, const char *name) { gchar *new_str = get_malloced_string_from_text_view(tv); save_text_if_changed(name, new_str); free(new_str); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,353
static void save_to_event_log(struct analyze_event_data *evd, const char *str) { static const char delim[] = { [LOGSTATE_FIRSTLINE] = '>', [LOGSTATE_BEGLINE] = ' ', [LOGSTATE_ERRLINE] = '*', }; while (str[0]) { char *end = strchrnul(str, '\n'); char end_char = *e...
+Info
0
static void save_to_event_log(struct analyze_event_data *evd, const char *str) { static const char delim[] = { [LOGSTATE_FIRSTLINE] = '>', [LOGSTATE_BEGLINE] = ' ', [LOGSTATE_ERRLINE] = '*', }; while (str[0]) { char *end = strchrnul(str, '\n'); char end_char = *e...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,354
static void search_item_to_list_store_item(GtkListStore *store, GtkTreeIter *new_row, const gchar *file_name, search_item_t *word) { GtkTextIter *beg = gtk_text_iter_copy(&(word->start)); gtk_text_iter_backward_line(beg); GtkTextIter *end = gtk_text_iter_copy(&(word->end)); /* the first call mo...
+Info
0
static void search_item_to_list_store_item(GtkListStore *store, GtkTreeIter *new_row, const gchar *file_name, search_item_t *word) { GtkTextIter *beg = gtk_text_iter_copy(&(word->start)); gtk_text_iter_backward_line(beg); GtkTextIter *end = gtk_text_iter_copy(&(word->end)); /* the first call mo...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,355
static void search_timeout(GtkEntry *entry) { /* this little hack makes the search start searching after 500 milisec after * user stops writing into entry box * if this part is removed, then the search will be started on every * change of the search entry */ if (g_timeout != 0) g_sou...
+Info
0
static void search_timeout(GtkEntry *entry) { /* this little hack makes the search start searching after 500 milisec after * user stops writing into entry box * if this part is removed, then the search will be started on every * change of the search entry */ if (g_timeout != 0) g_sou...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,356
static gint select_next_page_no(gint current_page_no, gpointer data) { GtkWidget *page; again: log_notice("%s: current_page_no:%d", __func__, current_page_no); current_page_no++; page = gtk_notebook_get_nth_page(g_assistant, current_page_no); if (pages[PAGENO_EVENT_SELECTOR].page_widget == page) ...
+Info
0
static gint select_next_page_no(gint current_page_no, gpointer data) { GtkWidget *page; again: log_notice("%s: current_page_no:%d", __func__, current_page_no); current_page_no++; page = gtk_notebook_get_nth_page(g_assistant, current_page_no); if (pages[PAGENO_EVENT_SELECTOR].page_widget == page) ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,357
static void set_auto_event_chain(GtkButton *button, gpointer user_data) { g_expert_mode = false; workflow_t *w = (workflow_t *)user_data; config_item_info_t *info = workflow_get_config_info(w); log_notice("selected workflow '%s'", ci_get_screen_name(info)); GList *wf_event_list = wf_get_event_list...
+Info
0
static void set_auto_event_chain(GtkButton *button, gpointer user_data) { g_expert_mode = false; workflow_t *w = (workflow_t *)user_data; config_item_info_t *info = workflow_get_config_info(w); log_notice("selected workflow '%s'", ci_get_screen_name(info)); GList *wf_event_list = wf_get_event_list...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,358
static void set_cursor_if_appropriate(GtkTextView *text_view, gint x, gint y) { GSList *tags = NULL, *tagp = NULL; GtkTextIter iter; gboolean hovering = FALSE; gtk_text_view_get_iter_at_location(text_view, &iter, x, y); ta...
+Info
0
static void set_cursor_if_appropriate(GtkTextView *text_view, gint x, gint y) { GSList *tags = NULL, *tagp = NULL; GtkTextIter iter; gboolean hovering = FALSE; gtk_text_view_get_iter_at_location(text_view, &iter, x, y); ta...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,359
static void set_excluded_envvar(void) { struct strbuf *item_list = strbuf_new(); const char *fmt = "%s"; GtkTreeIter iter; if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(g_ls_details), &iter)) { do { gchar *item_name = NULL; gboolean checked = 0; gtk_tr...
+Info
0
static void set_excluded_envvar(void) { struct strbuf *item_list = strbuf_new(); const char *fmt = "%s"; GtkTreeIter iter; if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(g_ls_details), &iter)) { do { gchar *item_name = NULL; gboolean checked = 0; gtk_tr...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,360
static char *setup_next_processed_event(GList **events_list) { free(g_event_selected); g_event_selected = NULL; char *event = get_next_processed_event(&g_auto_event_list); if (!event) { /* No next event, go to progress page and finish */ gtk_label_set_text(g_lbl_event_log, _("Proces...
+Info
0
static char *setup_next_processed_event(GList **events_list) { free(g_event_selected); g_event_selected = NULL; char *event = get_next_processed_event(&g_auto_event_list); if (!event) { /* No next event, go to progress page and finish */ gtk_label_set_text(g_lbl_event_log, _("Proces...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,361
static void show_warnings(void) { if (g_warning_issued) gtk_widget_show(g_widget_warnings_area); }
+Info
0
static void show_warnings(void) { if (g_warning_issued) gtk_widget_show(g_widget_warnings_area); }
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,362
static int spawn_next_command_in_evd(struct analyze_event_data *evd) { evd->env_list = export_event_config(evd->event_name); int r = spawn_next_command(evd->run_state, g_dump_dir_name, evd->event_name, EXECFLG_SETPGID); if (r >= 0) { g_event_child_pid = evd->run_state->command_pid; } els...
+Info
0
static int spawn_next_command_in_evd(struct analyze_event_data *evd) { evd->env_list = export_event_config(evd->event_name); int r = spawn_next_command(evd->run_state, g_dump_dir_name, evd->event_name, EXECFLG_SETPGID); if (r >= 0) { g_event_child_pid = evd->run_state->command_pid; } els...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,363
static void toggle_eb_comment(void) { /* The page doesn't exist with report-only option */ if (pages[PAGENO_EDIT_COMMENT].page_widget == NULL) return; bool good = gtk_text_buffer_get_char_count(gtk_text_view_get_buffer(g_tv_comment)) >= 10 || gtk_toggle_button_get_active(GTK_TOGGLE_...
+Info
0
static void toggle_eb_comment(void) { /* The page doesn't exist with report-only option */ if (pages[PAGENO_EDIT_COMMENT].page_widget == NULL) return; bool good = gtk_text_buffer_get_char_count(gtk_text_view_get_buffer(g_tv_comment)) >= 10 || gtk_toggle_button_get_active(GTK_TOGGLE_...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,364
static void tv_details_cursor_changed( GtkTreeView *tree_view, gpointer user_data_UNUSED) { /* I see this being called on window "destroy" signal when the tree_view is not a tree view anymore (or destroyed?) causing this error msg: (abrt:12804): Gtk-...
+Info
0
static void tv_details_cursor_changed( GtkTreeView *tree_view, gpointer user_data_UNUSED) { /* I see this being called on window "destroy" signal when the tree_view is not a tree view anymore (or destroyed?) causing this error msg: (abrt:12804): Gtk-...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,365
static void update_command_run_log(const char* message, struct analyze_event_data *evd) { const bool it_is_a_dot = (message[0] == '.' && message[1] == '\0'); if (!it_is_a_dot) gtk_label_set_text(g_lbl_event_log, message); /* Don't append new line behind single dot */ const char *log_msg = it_i...
+Info
0
static void update_command_run_log(const char* message, struct analyze_event_data *evd) { const bool it_is_a_dot = (message[0] == '.' && message[1] == '\0'); if (!it_is_a_dot) gtk_label_set_text(g_lbl_event_log, message); /* Don't append new line behind single dot */ const char *log_msg = it_i...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,366
static void update_event_log_on_disk(const char *str) { /* Load existing log */ struct dump_dir *dd = dd_opendir(g_dump_dir_name, 0); if (!dd) return; char *event_log = dd_load_text_ext(dd, FILENAME_EVENT_LOG, DD_FAIL_QUIETLY_ENOENT); /* Append new log part to existing log */ unsigned l...
+Info
0
static void update_event_log_on_disk(const char *str) { /* Load existing log */ struct dump_dir *dd = dd_opendir(g_dump_dir_name, 0); if (!dd) return; char *event_log = dd_load_text_ext(dd, FILENAME_EVENT_LOG, DD_FAIL_QUIETLY_ENOENT); /* Append new log part to existing log */ unsigned l...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,367
void update_gui_state_from_problem_data(int flags) { update_window_title(); remove_tabs_from_notebook(g_notebook); const char *reason = problem_data_get_content_or_NULL(g_cd, FILENAME_REASON); const char *not_reportable = problem_data_get_content_or_NULL(g_cd, ...
+Info
0
void update_gui_state_from_problem_data(int flags) { update_window_title(); remove_tabs_from_notebook(g_notebook); const char *reason = problem_data_get_content_or_NULL(g_cd, FILENAME_REASON); const char *not_reportable = problem_data_get_content_or_NULL(g_cd, ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,368
static void update_ls_details_checkboxes(const char *event_name) { event_config_t *cfg = get_event_config(event_name); GHashTableIter iter; char *name; struct problem_item *item; g_hash_table_iter_init(&iter, g_cd); string_vector_ptr_t global_exclude = get_global_always_excluded_elements(); ...
+Info
0
static void update_ls_details_checkboxes(const char *event_name) { event_config_t *cfg = get_event_config(event_name); GHashTableIter iter; char *name; struct problem_item *item; g_hash_table_iter_init(&iter, g_cd); string_vector_ptr_t global_exclude = get_global_always_excluded_elements(); ...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,369
static void update_window_title(void) { /* prgname can be null according to gtk documentation */ const char *prgname = g_get_prgname(); const char *reason = problem_data_get_content_or_NULL(g_cd, FILENAME_REASON); char *title = xasprintf("%s - %s", (reason ? reason : g_dump_dir_name), (prgna...
+Info
0
static void update_window_title(void) { /* prgname can be null according to gtk documentation */ const char *prgname = g_get_prgname(); const char *reason = problem_data_get_content_or_NULL(g_cd, FILENAME_REASON); char *title = xasprintf("%s - %s", (reason ? reason : g_dump_dir_name), (prgna...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,370
static gboolean visibility_notify_event(GtkWidget *text_view, GdkEventVisibility *event) { gint wx, wy, bx, by; GdkWindow *win = gtk_text_view_get_window(GTK_TEXT_VIEW(text_view), GTK_TEXT_WINDOW_TEXT); GdkDeviceManager *device_manager = gdk_display_get_device_manager(gdk_window_get_display (win)); Gdk...
+Info
0
static gboolean visibility_notify_event(GtkWidget *text_view, GdkEventVisibility *event) { gint wx, wy, bx, by; GdkWindow *win = gtk_text_view_get_window(GTK_TEXT_VIEW(text_view), GTK_TEXT_WINDOW_TEXT); GdkDeviceManager *device_manager = gdk_display_get_device_manager(gdk_window_get_display (win)); Gdk...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,371
struct dump_dir *wizard_open_directory_for_writing(const char *dump_dir_name) { struct dump_dir *dd = open_directory_for_writing(dump_dir_name, ask_continue_before_steal); if (dd && strcmp(g_dump_dir_name, dd->dd_dirname) != 0) { char *old_name =...
+Info
0
struct dump_dir *wizard_open_directory_for_writing(const char *dump_dir_name) { struct dump_dir *dd = open_directory_for_writing(dump_dir_name, ask_continue_before_steal); if (dd && strcmp(g_dump_dir_name, dd->dd_dirname) != 0) { char *old_name =...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,372
static void wrap_fixer(GtkWidget *widget, gpointer data_unused) { if (GTK_IS_CONTAINER(widget)) { gtk_container_foreach((GtkContainer*)widget, wrap_fixer, NULL); return; } if (GTK_IS_LABEL(widget)) { GtkLabel *label = (GtkLabel*)widget; #if ((GTK_MAJOR_VERSION == 3 && GTK_MIN...
+Info
0
static void wrap_fixer(GtkWidget *widget, gpointer data_unused) { if (GTK_IS_CONTAINER(widget)) { gtk_container_foreach((GtkContainer*)widget, wrap_fixer, NULL); return; } if (GTK_IS_LABEL(widget)) { GtkLabel *label = (GtkLabel*)widget; #if ((GTK_MAJOR_VERSION == 3 && GTK_MIN...
@@ -433,8 +433,6 @@ static void save_text_if_changed(const char *name, const char *new_value) //FIXME: else: what to do with still-unsaved data in the widget?? dd_close(dd); - problem_data_reload_from_dump_dir(); - update_gui_state_from_problem_data(/* don't update selected event */ 0); }...
CWE-200
null
null
34,373
static int compute_selinux_con_for_new_file(pid_t pid, int dir_fd, security_context_t *newcon) { security_context_t srccon; security_context_t dstcon; const int r = is_selinux_enabled(); if (r == 0) { *newcon = NULL; return 1; } else if (r == -1) { perror_msg("Co...
+Priv
0
static int compute_selinux_con_for_new_file(pid_t pid, int dir_fd, security_context_t *newcon) { security_context_t srccon; security_context_t dstcon; const int r = is_selinux_enabled(); if (r == 0) { *newcon = NULL; return 1; } else if (r == -1) { perror_msg("Co...
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,374
static off_t copyfd_sparse(int src_fd, int dst_fd1, int dst_fd2, off_t size2) { off_t total = 0; int last_was_seek = 0; #if CONFIG_FEATURE_COPYBUF_KB <= 4 char buffer[CONFIG_FEATURE_COPYBUF_KB * 1024]; enum { buffer_size = sizeof(buffer) }; #else char *buffer; int buffer_size; /* We want page-aligned buffer, ju...
+Priv
0
static off_t copyfd_sparse(int src_fd, int dst_fd1, int dst_fd2, off_t size2) { off_t total = 0; int last_was_seek = 0; #if CONFIG_FEATURE_COPYBUF_KB <= 4 char buffer[CONFIG_FEATURE_COPYBUF_KB * 1024]; enum { buffer_size = sizeof(buffer) }; #else char *buffer; int buffer_size; /* We want page-aligned buffer, ju...
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,375
static void create_core_backtrace(pid_t tid, const char *executable, int signal_no, struct dump_dir *dd) { #ifdef ENABLE_DUMP_TIME_UNWIND if (g_verbose > 1) sr_debug_parser = true; char *error_message = NULL; char *core_bt = sr_abrt_get_core_stacktrace_from_core_hook(tid, executable, ...
+Priv
0
static void create_core_backtrace(pid_t tid, const char *executable, int signal_no, struct dump_dir *dd) { #ifdef ENABLE_DUMP_TIME_UNWIND if (g_verbose > 1) sr_debug_parser = true; char *error_message = NULL; char *core_bt = sr_abrt_get_core_stacktrace_from_core_hook(tid, executable, ...
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,376
static int create_or_die(const char *filename, int user_core_fd) { int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, DEFAULT_DUMP_DIR_MODE); if (fd >= 0) { IGNORE_RESULT(fchown(fd, dd->dd_uid, dd->dd_gid)); return fd; } int sv_errno = errno; if (dd) dd_delet...
+Priv
0
static int create_or_die(const char *filename, int user_core_fd) { int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, DEFAULT_DUMP_DIR_MODE); if (fd >= 0) { IGNORE_RESULT(fchown(fd, dd->dd_uid, dd->dd_gid)); return fd; } int sv_errno = errno; if (dd) dd_delet...
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,377
static int create_user_core(int user_core_fd, pid_t pid, off_t ulimit_c) { int err = 1; if (user_core_fd >= 0) { off_t core_size = copyfd_size(STDIN_FILENO, user_core_fd, ulimit_c, COPYFD_SPARSE); if (close_user_core(user_core_fd, core_size) != 0) goto finito; log_notice...
+Priv
0
static int create_user_core(int user_core_fd, pid_t pid, off_t ulimit_c) { int err = 1; if (user_core_fd >= 0) { off_t core_size = copyfd_size(STDIN_FILENO, user_core_fd, ulimit_c, COPYFD_SPARSE); if (close_user_core(user_core_fd, core_size) != 0) goto finito; log_notice...
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,378
static DIR *open_cwd(pid_t pid) { char buf[sizeof("/proc/%lu/cwd") + sizeof(long)*3]; sprintf(buf, "/proc/%lu/cwd", (long)pid); DIR *cwd = opendir(buf); if (cwd == NULL) perror_msg("Can't open process's CWD for CompatCore"); return cwd; }
+Priv
0
static DIR *open_cwd(pid_t pid) { char buf[sizeof("/proc/%lu/cwd") + sizeof(long)*3]; sprintf(buf, "/proc/%lu/cwd", (long)pid); DIR *cwd = opendir(buf); if (cwd == NULL) perror_msg("Can't open process's CWD for CompatCore"); return cwd; }
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,379
static int open_user_core(uid_t uid, uid_t fsuid, gid_t fsgid, pid_t pid, char **percent_values) { proc_cwd = open_cwd(pid); if (proc_cwd == NULL) return -1; /* http://article.gmane.org/gmane.comp.security.selinux/21842 */ security_context_t newcon; if (compute_selinux_con_for_new_file(pid,...
+Priv
0
static int open_user_core(uid_t uid, uid_t fsuid, gid_t fsgid, pid_t pid, char **percent_values) { proc_cwd = open_cwd(pid); if (proc_cwd == NULL) return -1; /* http://article.gmane.org/gmane.comp.security.selinux/21842 */ security_context_t newcon; if (compute_selinux_con_for_new_file(pid,...
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,380
static int save_crashing_binary(pid_t pid, struct dump_dir *dd) { char buf[sizeof("/proc/%lu/exe") + sizeof(long)*3]; sprintf(buf, "/proc/%lu/exe", (long)pid); int src_fd_binary = open(buf, O_RDONLY); /* might fail and return -1, it's ok */ if (src_fd_binary < 0) { log_notice("Failed to ope...
+Priv
0
static int save_crashing_binary(pid_t pid, struct dump_dir *dd) { char buf[sizeof("/proc/%lu/exe") + sizeof(long)*3]; sprintf(buf, "/proc/%lu/exe", (long)pid); int src_fd_binary = open(buf, O_RDONLY); /* might fail and return -1, it's ok */ if (src_fd_binary < 0) { log_notice("Failed to ope...
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,381
static int test_configuration(bool setting_SaveFullCore, bool setting_CreateCoreBacktrace) { if (!setting_SaveFullCore && !setting_CreateCoreBacktrace) { fprintf(stderr, "Both SaveFullCore and CreateCoreBacktrace are disabled - " "at least one of them is needed for useful report....
+Priv
0
static int test_configuration(bool setting_SaveFullCore, bool setting_CreateCoreBacktrace) { if (!setting_SaveFullCore && !setting_CreateCoreBacktrace) { fprintf(stderr, "Both SaveFullCore and CreateCoreBacktrace are disabled - " "at least one of them is needed for useful report....
@@ -718,7 +718,8 @@ int main(int argc, char** argv) if (snprintf(path, sizeof(path), "%s/%s-coredump", g_settings_dump_location, last_slash) >= sizeof(path)) error_msg_and_die("Error saving '%s': truncated long file path", path); - int abrt_core_fd = xopen3(path, O_WRONLY | O_CREAT | O_TR...
CWE-59
null
null
34,382
static inline void cleanup_sctp_mibs(struct net *net) { free_percpu(net->sctp.sctp_statistics); }
DoS Overflow Mem. Corr.
0
static inline void cleanup_sctp_mibs(struct net *net) { free_percpu(net->sctp.sctp_statistics); }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,383
void sctp_addr_wq_mgmt(struct net *net, struct sctp_sockaddr_entry *addr, int cmd) { struct sctp_sockaddr_entry *addrw; unsigned long timeo_val; /* first, we check if an opposite message already exist in the queue. * If we found such message, it is removed. * This operation is a bit stupid, but the DHCP client ...
DoS Overflow Mem. Corr.
0
void sctp_addr_wq_mgmt(struct net *net, struct sctp_sockaddr_entry *addr, int cmd) { struct sctp_sockaddr_entry *addrw; unsigned long timeo_val; /* first, we check if an opposite message already exist in the queue. * If we found such message, it is removed. * This operation is a bit stupid, but the DHCP client ...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,384
int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, sctp_scope_t scope, gfp_t gfp, int copy_flags) { struct sctp_sockaddr_entry *addr; int error = 0; rcu_read_lock(); list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) { if (!addr->valid) continue; if (sctp_in_scop...
DoS Overflow Mem. Corr.
0
int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, sctp_scope_t scope, gfp_t gfp, int copy_flags) { struct sctp_sockaddr_entry *addr; int error = 0; rcu_read_lock(); list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) { if (!addr->valid) continue; if (sctp_in_scop...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,385
static int sctp_ctl_sock_init(struct net *net) { int err; sa_family_t family = PF_INET; if (sctp_get_pf_specific(PF_INET6)) family = PF_INET6; err = inet_ctl_sock_create(&net->sctp.ctl_sock, family, SOCK_SEQPACKET, IPPROTO_SCTP, net); /* If IPv6 socket could not be created, try the IPv4 socket */ if (...
DoS Overflow Mem. Corr.
0
static int sctp_ctl_sock_init(struct net *net) { int err; sa_family_t family = PF_INET; if (sctp_get_pf_specific(PF_INET6)) family = PF_INET6; err = inet_ctl_sock_create(&net->sctp.ctl_sock, family, SOCK_SEQPACKET, IPPROTO_SCTP, net); /* If IPv6 socket could not be created, try the IPv4 socket */ if (...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,386
static void sctp_free_addr_wq(struct net *net) { struct sctp_sockaddr_entry *addrw; struct sctp_sockaddr_entry *temp; spin_lock_bh(&net->sctp.addr_wq_lock); del_timer(&net->sctp.addr_wq_timer); list_for_each_entry_safe(addrw, temp, &net->sctp.addr_waitq, list) { list_del(&addrw->list); kfree(addrw); } spin_...
DoS Overflow Mem. Corr.
0
static void sctp_free_addr_wq(struct net *net) { struct sctp_sockaddr_entry *addrw; struct sctp_sockaddr_entry *temp; spin_lock_bh(&net->sctp.addr_wq_lock); del_timer(&net->sctp.addr_wq_timer); list_for_each_entry_safe(addrw, temp, &net->sctp.addr_waitq, list) { list_del(&addrw->list); kfree(addrw); } spin_...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,387
static void sctp_free_local_addr_list(struct net *net) { struct sctp_sockaddr_entry *addr; struct list_head *pos, *temp; list_for_each_safe(pos, temp, &net->sctp.local_addr_list) { addr = list_entry(pos, struct sctp_sockaddr_entry, list); list_del(pos); kfree(addr); } }
DoS Overflow Mem. Corr.
0
static void sctp_free_local_addr_list(struct net *net) { struct sctp_sockaddr_entry *addr; struct list_head *pos, *temp; list_for_each_safe(pos, temp, &net->sctp.local_addr_list) { addr = list_entry(pos, struct sctp_sockaddr_entry, list); list_del(pos); kfree(addr); } }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,388
struct sctp_af *sctp_get_af_specific(sa_family_t family) { switch (family) { case AF_INET: return sctp_af_v4_specific; case AF_INET6: return sctp_af_v6_specific; default: return NULL; } }
DoS Overflow Mem. Corr.
0
struct sctp_af *sctp_get_af_specific(sa_family_t family) { switch (family) { case AF_INET: return sctp_af_v4_specific; case AF_INET6: return sctp_af_v6_specific; default: return NULL; } }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,389
static void sctp_get_local_addr_list(struct net *net) { struct net_device *dev; struct list_head *pos; struct sctp_af *af; rcu_read_lock(); for_each_netdev_rcu(net, dev) { list_for_each(pos, &sctp_address_families) { af = list_entry(pos, struct sctp_af, list); af->copy_addrlist(&net->sctp.local_addr_list,...
DoS Overflow Mem. Corr.
0
static void sctp_get_local_addr_list(struct net *net) { struct net_device *dev; struct list_head *pos; struct sctp_af *af; rcu_read_lock(); for_each_netdev_rcu(net, dev) { list_for_each(pos, &sctp_address_families) { af = list_entry(pos, struct sctp_af, list); af->copy_addrlist(&net->sctp.local_addr_list,...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,390
struct sctp_pf *sctp_get_pf_specific(sa_family_t family) { switch (family) { case PF_INET: return sctp_pf_inet_specific; case PF_INET6: return sctp_pf_inet6_specific; default: return NULL; } }
DoS Overflow Mem. Corr.
0
struct sctp_pf *sctp_get_pf_specific(sa_family_t family) { switch (family) { case PF_INET: return sctp_pf_inet_specific; case PF_INET6: return sctp_pf_inet6_specific; default: return NULL; } }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,391
static int sctp_inet_bind_verify(struct sctp_sock *opt, union sctp_addr *addr) { return sctp_v4_available(addr, opt); }
DoS Overflow Mem. Corr.
0
static int sctp_inet_bind_verify(struct sctp_sock *opt, union sctp_addr *addr) { return sctp_v4_available(addr, opt); }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,392
static void sctp_inet_event_msgname(struct sctp_ulpevent *event, char *msgname, int *addr_len) { struct sockaddr_in *sin, *sinfrom; if (msgname) { struct sctp_association *asoc; asoc = event->asoc; sctp_inet_msgname(msgname, addr_len); sin = (struct sockaddr_in *)msgname; sinfrom = &asoc->peer.pri...
DoS Overflow Mem. Corr.
0
static void sctp_inet_event_msgname(struct sctp_ulpevent *event, char *msgname, int *addr_len) { struct sockaddr_in *sin, *sinfrom; if (msgname) { struct sctp_association *asoc; asoc = event->asoc; sctp_inet_msgname(msgname, addr_len); sin = (struct sockaddr_in *)msgname; sinfrom = &asoc->peer.pri...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,393
static void sctp_inet_msgname(char *msgname, int *addr_len) { struct sockaddr_in *sin; sin = (struct sockaddr_in *)msgname; *addr_len = sizeof(struct sockaddr_in); sin->sin_family = AF_INET; memset(sin->sin_zero, 0, sizeof(sin->sin_zero)); }
DoS Overflow Mem. Corr.
0
static void sctp_inet_msgname(char *msgname, int *addr_len) { struct sockaddr_in *sin; sin = (struct sockaddr_in *)msgname; *addr_len = sizeof(struct sockaddr_in); sin->sin_family = AF_INET; memset(sin->sin_zero, 0, sizeof(sin->sin_zero)); }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,394
static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev, void *ptr) { struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; struct sctp_sockaddr_entry *addr = NULL; struct sctp_sockaddr_entry *temp; struct net *net = dev_net(ifa->ifa_dev->dev); int found = 0; switch (ev) { case NETDEV_...
DoS Overflow Mem. Corr.
0
static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev, void *ptr) { struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; struct sctp_sockaddr_entry *addr = NULL; struct sctp_sockaddr_entry *temp; struct net *net = dev_net(ifa->ifa_dev->dev); int found = 0; switch (ev) { case NETDEV_...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,395
static void sctp_proc_exit(struct net *net) { #ifdef CONFIG_PROC_FS sctp_snmp_proc_exit(net); sctp_eps_proc_exit(net); sctp_assocs_proc_exit(net); sctp_remaddr_proc_exit(net); remove_proc_entry("sctp", net->proc_net); net->sctp.proc_net_sctp = NULL; #endif }
DoS Overflow Mem. Corr.
0
static void sctp_proc_exit(struct net *net) { #ifdef CONFIG_PROC_FS sctp_snmp_proc_exit(net); sctp_eps_proc_exit(net); sctp_assocs_proc_exit(net); sctp_remaddr_proc_exit(net); remove_proc_entry("sctp", net->proc_net); net->sctp.proc_net_sctp = NULL; #endif }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,396
int sctp_register_pf(struct sctp_pf *pf, sa_family_t family) { switch (family) { case PF_INET: if (sctp_pf_inet_specific) return 0; sctp_pf_inet_specific = pf; break; case PF_INET6: if (sctp_pf_inet6_specific) return 0; sctp_pf_inet6_specific = pf; break; default: return 0; } return 1; }
DoS Overflow Mem. Corr.
0
int sctp_register_pf(struct sctp_pf *pf, sa_family_t family) { switch (family) { case PF_INET: if (sctp_pf_inet_specific) return 0; sctp_pf_inet_specific = pf; break; case PF_INET6: if (sctp_pf_inet6_specific) return 0; sctp_pf_inet6_specific = pf; break; default: return 0; } return 1; }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,397
static int sctp_v4_add_protocol(void) { /* Register notifier for inet address additions/deletions. */ register_inetaddr_notifier(&sctp_inetaddr_notifier); /* Register SCTP with inet layer. */ if (inet_add_protocol(&sctp_protocol, IPPROTO_SCTP) < 0) return -EAGAIN; return 0; }
DoS Overflow Mem. Corr.
0
static int sctp_v4_add_protocol(void) { /* Register notifier for inet address additions/deletions. */ register_inetaddr_notifier(&sctp_inetaddr_notifier); /* Register SCTP with inet layer. */ if (inet_add_protocol(&sctp_protocol, IPPROTO_SCTP) < 0) return -EAGAIN; return 0; }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,398
static int sctp_v4_addr_valid(union sctp_addr *addr, struct sctp_sock *sp, const struct sk_buff *skb) { /* IPv4 addresses not allowed */ if (sp && ipv6_only_sock(sctp_opt2sk(sp))) return 0; /* Is this a non-unicast address or a unusable SCTP address? */ if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin...
DoS Overflow Mem. Corr.
0
static int sctp_v4_addr_valid(union sctp_addr *addr, struct sctp_sock *sp, const struct sk_buff *skb) { /* IPv4 addresses not allowed */ if (sp && ipv6_only_sock(sctp_opt2sk(sp))) return 0; /* Is this a non-unicast address or a unusable SCTP address? */ if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin...
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null
34,399
static int sctp_v4_cmp_addr(const union sctp_addr *addr1, const union sctp_addr *addr2) { if (addr1->sa.sa_family != addr2->sa.sa_family) return 0; if (addr1->v4.sin_port != addr2->v4.sin_port) return 0; if (addr1->v4.sin_addr.s_addr != addr2->v4.sin_addr.s_addr) return 0; return 1; }
DoS Overflow Mem. Corr.
0
static int sctp_v4_cmp_addr(const union sctp_addr *addr1, const union sctp_addr *addr2) { if (addr1->sa.sa_family != addr2->sa.sa_family) return 0; if (addr1->v4.sin_port != addr2->v4.sin_port) return 0; if (addr1->v4.sin_addr.s_addr != addr2->v4.sin_addr.s_addr) return 0; return 1; }
@@ -1186,7 +1186,7 @@ static void sctp_v4_del_protocol(void) unregister_inetaddr_notifier(&sctp_inetaddr_notifier); } -static int __net_init sctp_net_init(struct net *net) +static int __net_init sctp_defaults_init(struct net *net) { int status; @@ -1279,12 +1279,6 @@ static int __net_init sctp_net_init(struct...
CWE-119
null
null